summaryrefslogtreecommitdiff
path: root/plugins/common
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-08 14:09:44 -0300
committerPerberos <[email protected]>2011-12-08 14:09:44 -0300
commit283de05cf3b8bed9dcde9e80875b860520de392a (patch)
tree0447d2c7e271ed05493794670fac0d6f05d0d475 /plugins/common
parent81ea15d1ce166e69e7fff11c88e16c42d8db190d (diff)
downloadmate-settings-daemon-283de05cf3b8bed9dcde9e80875b860520de392a.tar.bz2
mate-settings-daemon-283de05cf3b8bed9dcde9e80875b860520de392a.tar.xz
GDK_DISPLAY() is deprecated
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));