From 520041451fd356d679da39f83d17585777643a85 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 18 May 2014 02:00:10 +0200 Subject: gdk_x11_window_lookup_for_display and gdk_window_get_screen are in gdk2 --- plugins/keybindings/msd-keybindings-manager.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'plugins/keybindings') diff --git a/plugins/keybindings/msd-keybindings-manager.c b/plugins/keybindings/msd-keybindings-manager.c index e988fa0..c4fd858 100644 --- a/plugins/keybindings/msd-keybindings-manager.c +++ b/plugins/keybindings/msd-keybindings-manager.c @@ -421,18 +421,10 @@ get_exec_environment (XEvent *xevent) int i; int display_index = -1; GdkScreen *screen = NULL; -#if GTK_CHECK_VERSION (3, 0, 0) GdkWindow *window = gdk_x11_window_lookup_for_display (gdk_display_get_default (), xevent->xkey.root); -#else - GdkWindow *window = gdk_xid_table_lookup (xevent->xkey.root); -#endif 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