diff options
author | Qball Cow <qball@gmpclient.org> | 2015-11-20 11:43:22 +0100 |
---|---|---|
committer | Qball Cow <qball@gmpclient.org> | 2015-11-20 11:43:22 +0100 |
commit | 1bd231bc3d259bfd605c3ace9fc73a8c4c7e3e7f (patch) | |
tree | a10f7be0805ede21d4c6404b136b66ef0b05fcb0 /source/x11-helper.c | |
parent | 264e9e5b0e4dafd158b0ee9a922f7fc641614b6c (diff) |
Fix issue #275: don't try to do move cursor when nothing is shown.
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r-- | source/x11-helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c index cda8c674..3850cb9f 100644 --- a/source/x11-helper.c +++ b/source/x11-helper.c @@ -57,8 +57,8 @@ Atom netatoms[NUM_NETATOMS]; const char *netatom_names[] = { EWMH_ATOMS ( ATOM_CHAR ) }; // Mask indicating num-lock. -unsigned int NumlockMask = 0; -unsigned int ModeSwitchMask = 0; +unsigned int NumlockMask = 0; +unsigned int ModeSwitchMask = 0; extern Colormap map; @@ -370,7 +370,7 @@ static void x11_figure_out_numlock_mask ( Display *display ) { XModifierKeymap *modmap = XGetModifierMapping ( display ); KeyCode kc = XKeysymToKeycode ( display, XK_Num_Lock ); - KeyCode kc_ms = XKeysymToKeycode ( display, XK_Mode_switch); + KeyCode kc_ms = XKeysymToKeycode ( display, XK_Mode_switch ); for ( int i = 0; i < 8; i++ ) { for ( int j = 0; j < ( int ) modmap->max_keypermod; j++ ) { if ( modmap->modifiermap[i * modmap->max_keypermod + j] == kc ) { |