mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 13:54:12 +01:00
- Fixed a flickering problem with the scrollview.
- Use of uppercase letters when getting keysyms
This commit is contained in:
@@ -122,7 +122,7 @@ static char*
|
||||
captureShortcut(Display *dpy, _Panel *panel)
|
||||
{
|
||||
XEvent ev;
|
||||
KeySym ksym;
|
||||
KeySym ksym, lksym, uksym;
|
||||
char buffer[64];
|
||||
char *key = NULL;
|
||||
|
||||
@@ -131,9 +131,10 @@ captureShortcut(Display *dpy, _Panel *panel)
|
||||
WMNextEvent(dpy, &ev);
|
||||
if (ev.type==KeyPress && ev.xkey.keycode!=0) {
|
||||
ksym = XKeycodeToKeysym(dpy, ev.xkey.keycode, 0);
|
||||
if (!IsModifierKey(ksym)) {
|
||||
key=XKeysymToString(ksym);
|
||||
panel->capturing = 0;
|
||||
if (!IsModifierKey(ksym)) {
|
||||
XConvertCase(ksym, &lksym, &uksym);
|
||||
key=XKeysymToString(uksym);
|
||||
panel->capturing = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user