summaryrefslogtreecommitdiff
path: root/src/tomboykeybinder.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-14 01:57:20 -0800
committerStefano Karapetsas <[email protected]>2014-01-14 01:57:20 -0800
commit8b912b74eab509351c1969f2a4e4db52c5974667 (patch)
tree726e5fdf26c1d884e2782673da6c6a5d587c6393 /src/tomboykeybinder.c
parent1f055b9bc291255d4aa339e83e67e46bf887dc61 (diff)
parentedcac6e05b70c25ddc5288c48c11b317f45521c1 (diff)
downloadmate-indicator-applet-8b912b74eab509351c1969f2a4e4db52c5974667.tar.bz2
mate-indicator-applet-8b912b74eab509351c1969f2a4e4db52c5974667.tar.xz
Merge pull request #4 from eyelash/gtk3
gtk3
Diffstat (limited to 'src/tomboykeybinder.c')
-rw-r--r--src/tomboykeybinder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tomboykeybinder.c b/src/tomboykeybinder.c
index 7aa7168..29a8e27 100644
--- a/src/tomboykeybinder.c
+++ b/src/tomboykeybinder.c
@@ -86,7 +86,7 @@ grab_ungrab_with_ignorable_modifiers (GdkWindow *rootwin,
XGrabKey (GDK_WINDOW_XDISPLAY (rootwin),
binding->keycode,
binding->modifiers | mod_masks [i],
- GDK_WINDOW_XWINDOW (rootwin),
+ GDK_WINDOW_XID (rootwin),
False,
GrabModeAsync,
GrabModeAsync);
@@ -94,7 +94,7 @@ grab_ungrab_with_ignorable_modifiers (GdkWindow *rootwin,
XUngrabKey (GDK_WINDOW_XDISPLAY (rootwin),
binding->keycode,
binding->modifiers | mod_masks [i],
- GDK_WINDOW_XWINDOW (rootwin));
+ GDK_WINDOW_XID (rootwin));
}
}
}
@@ -312,7 +312,7 @@ tomboy_keybinder_is_modifier (guint keycode)
XModifierKeymap *mod_keymap;
gboolean retval = FALSE;
- mod_keymap = XGetModifierMapping (gdk_display);
+ mod_keymap = XGetModifierMapping (gdk_x11_get_default_xdisplay());
map_size = 8 * mod_keymap->max_keypermod;