Skip to content
Permalink
Browse files

gtk2: make buildable again

  • Loading branch information...
kou committed Jan 6, 2018
1 parent c8cdf57 commit 38af9e2fda723f8d22e86492c43122d18fdc208f
Showing with 3 additions and 1 deletion.
  1. +3 −1 gtk2/immodule/key-util-gtk.c
@@ -1,6 +1,6 @@
/*
Copyright (c) 2003-2013 uim Project https://github.com/uim/uim
Copyright (c) 2003-2018 uim Project https://github.com/uim/uim
All rights reserved.
@@ -335,10 +335,12 @@ im_uim_init_modifier_keys()
mod1_list = mod2_list = mod3_list = mod4_list = mod5_list = NULL;

gdk_display = gdk_display_get_default();
# ifdef GDK_TYPE_X11_DISPLAY
if (!GDK_IS_X11_DISPLAY(gdk_display)) {
/* TODO: We may need to something for Wayland. */
return;
}
# endif
display = GDK_DISPLAY_XDISPLAY(gdk_display);
map = XGetModifierMapping(display);
XDisplayKeycodes(display, &min_keycode, &max_keycode);

0 comments on commit 38af9e2

Please sign in to comment.
You can’t perform that action at this time.