diff options
author | Stefano Karapetsas <[email protected]> | 2014-02-17 13:46:16 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-02-17 13:46:16 +0100 |
commit | faa5e56ad7ad4e4fb9936957856b001dcc0f6d58 (patch) | |
tree | 60c5cdd9dff5570e1a6253c6869d260201f5a777 /plugins | |
parent | 0e9de7f3cd814b0995aa10c33c91fe6b87be84ad (diff) | |
download | mate-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.c | 4 |
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) |