mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 23:22:30 +01:00
swpanel: Consider also the release of FOCUSPREV
The switch panel was not being destroyed with the realease of FOCUSPREV, only with FOCUSNEXT. Fix this. One can reproduce this bug as follows. In the "Keyboard Shortcut Preferences" of WPrefs set "Focus next window" to e.g. "Alt+Tab" and "Focus previous window" to "Ctrl+Tab". The switchpanel is not destroyed if we release "Ctrl+Tab" but it is upon releasing of "Alt+Tab". Retrieved-from: http://git.altlinux.org/people/voins/packages/?p=WindowMaker.git;a=commit;h=51c95a55c9310f499b1fdeca138106ca7bf74423 [crmafra: Commit log]
This commit is contained in:
committed by
Carlos R. Mafra
parent
fe736e849c
commit
01dddf00c8
@@ -194,8 +194,11 @@ void StartWindozeCycle(WWindow * wwin, XEvent * event, Bool next)
|
||||
|
||||
for (i = 0; i < 8 * keymap->max_keypermod; i++) {
|
||||
|
||||
int mask = 1 << (i / keymap->max_keypermod);
|
||||
|
||||
if (keymap->modifiermap[i] == ev.xkey.keycode &&
|
||||
wKeyBindings[WKBD_FOCUSNEXT].modifier & 1 << (i / keymap->max_keypermod)) {
|
||||
((wKeyBindings[WKBD_FOCUSNEXT].modifier & mask)
|
||||
|| (wKeyBindings[WKBD_FOCUSPREV].modifier & mask))) {
|
||||
done = True;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user