From 0e9de7f3cd814b0995aa10c33c91fe6b87be84ad Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 17 Feb 2014 13:43:34 +0100 Subject: keybindings: Fix GTK3 support --- plugins/keybindings/msd-keybindings-manager.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/keybindings/msd-keybindings-manager.c b/plugins/keybindings/msd-keybindings-manager.c index c554945..0e76920 100644 --- a/plugins/keybindings/msd-keybindings-manager.c +++ b/plugins/keybindings/msd-keybindings-manager.c @@ -424,7 +424,11 @@ get_exec_environment (XEvent *xevent) GdkWindow *window = gdk_xid_table_lookup (xevent->xkey.root); if (window) { +#if GTK_CHECK_VERSION (3, 0, 0) + screen = gdk_window_get_screen (window); +#else screen = gdk_drawable_get_screen (GDK_DRAWABLE (window)); +#endif } g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL); -- cgit v1.2.1