From faa5e56ad7ad4e4fb9936957856b001dcc0f6d58 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 17 Feb 2014 13:46:16 +0100 Subject: keybindings: Fix GTK3 support Together with previous commit, it closes https://github.com/mate-desktop/mate-settings-daemon/issues/53 --- 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 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) -- cgit v1.2.1