summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-17 13:46:16 +0100
committerStefano Karapetsas <[email protected]>2014-02-17 13:46:16 +0100
commitfaa5e56ad7ad4e4fb9936957856b001dcc0f6d58 (patch)
tree60c5cdd9dff5570e1a6253c6869d260201f5a777 /plugins
parent0e9de7f3cd814b0995aa10c33c91fe6b87be84ad (diff)
downloadmate-settings-daemon-faa5e56ad7ad4e4fb9936957856b001dcc0f6d58.tar.bz2
mate-settings-daemon-faa5e56ad7ad4e4fb9936957856b001dcc0f6d58.tar.xz
keybindings: Fix GTK3 support
Together with previous commit, it closes https://github.com/mate-desktop/mate-settings-daemon/issues/53
Diffstat (limited to 'plugins')
-rw-r--r--plugins/keybindings/msd-keybindings-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/keybindings/msd-keybindings-manager.c b/plugins/keybindings/msd-keybindings-manager.c
index 0e76920..e988fa0 100644
--- a/plugins/keybindings/msd-keybindings-manager.c
+++ b/plugins/keybindings/msd-keybindings-manager.c
@@ -421,7 +421,11 @@ 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)