diff options
Diffstat (limited to 'plugins/common/gsd-keygrab.c')
-rw-r--r-- | plugins/common/gsd-keygrab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/common/gsd-keygrab.c b/plugins/common/gsd-keygrab.c index 7d70665..d94fd29 100644 --- a/plugins/common/gsd-keygrab.c +++ b/plugins/common/gsd-keygrab.c @@ -74,7 +74,7 @@ grab_key_real (guint keycode, int mask) { if (grab) { - XGrabKey (GDK_DISPLAY (), + XGrabKey (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), keycode, mask, GDK_WINDOW_XID (root), @@ -82,7 +82,7 @@ grab_key_real (guint keycode, GrabModeAsync, GrabModeAsync); } else { - XUngrabKey (GDK_DISPLAY (), + XUngrabKey (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), keycode, mask, GDK_WINDOW_XID (root)); |