summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-18 02:00:10 +0200
committerinfirit <[email protected]>2014-05-18 02:00:10 +0200
commit520041451fd356d679da39f83d17585777643a85 (patch)
treea7bc1f368ccb3f548a02df3906565a3d374da042 /plugins
parente0d01fe79774e35fb4e0b3b300aa11a443d08eae (diff)
downloadmate-settings-daemon-520041451fd356d679da39f83d17585777643a85.tar.bz2
mate-settings-daemon-520041451fd356d679da39f83d17585777643a85.tar.xz
gdk_x11_window_lookup_for_display and gdk_window_get_screen are in gdk2
Diffstat (limited to 'plugins')
-rw-r--r--plugins/keybindings/msd-keybindings-manager.c8
1 files changed, 0 insertions, 8 deletions
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);