winex11: Get the ScrollLock mask.

This commit is contained in:
Vitaliy Margolen 2008-04-06 08:25:38 -06:00 committed by Alexandre Julliard
parent 751a71a044
commit b4d99eebbb
1 changed files with 6 additions and 1 deletions

View File

@ -87,7 +87,7 @@ static BYTE TrackSysKey = 0; /* determine whether ALT key up will cause a WM_SYS
static int min_keycode, max_keycode, keysyms_per_keycode;
static WORD keyc2vkey[256], keyc2scan[256];
static int NumLockMask, AltGrMask; /* mask in the XKeyEvent state */
static int NumLockMask, ScrollLockMask, AltGrMask; /* mask in the XKeyEvent state */
static char KEYBOARD_MapDeadKeysym(KeySym keysym);
@ -1641,6 +1641,11 @@ void X11DRV_InitKeyboard( Display *display )
NumLockMask = 1 << i;
TRACE_(key)("NumLockMask is %x\n", NumLockMask);
}
else if (XKeycodeToKeysym(display, *kcp, k) == XK_Scroll_Lock)
{
ScrollLockMask = 1 << i;
TRACE_(key)("ScrollLockMask is %x\n", ScrollLockMask);
}
}
}
XFreeModifiermap(mmp);