summaryrefslogtreecommitdiff
path: root/plugins/common
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/common')
-rw-r--r--plugins/common/gsd-keygrab.c4
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));