Permalink
Browse files

Fix crash in meta_display_get_above_tab_keycode

  • Loading branch information...
1 parent e1c7077 commit e3baf14cbb0e595f3bb67a7fc4fb607720c9aecb @nwnk nwnk committed with owtaylor Apr 14, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/above-tab-keycode.c
@@ -76,6 +76,8 @@ compute_above_tab_keycode (Display *xdisplay)
keyboard = XkbGetKeyboard (xdisplay,
XkbGBN_ClientSymbolsMask | XkbGBN_KeyNamesMask | XkbGBN_GeometryMask,
XkbUseCoreKbd);
+ if (!keyboard)
+ return best_keycode;
geometry = keyboard->geom;

0 comments on commit e3baf14

Please sign in to comment.