mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02:00
swpanel: Start with the first window when all are minimized
When all windows are minimized, the switch panel cursor is initially on the second window in the list. With this patch it will be on the first window.
This commit is contained in:
1 parent
f79379c090
commit
3a0eb643d9
1 file changed
+6
-1
+6
-1
@@ -126,7 +126,12 @@ void StartWindozeCycle(WWindow * wwin, XEvent * event, Bool next)
|
||||
oldFocused = wwin;
|
||||
|
||||
if (swpanel) {
|
||||
newFocused = wSwitchPanelSelectNext(swpanel, !next);
|
||||
|
||||
if (wwin->flags.mapped)
|
||||
newFocused = wSwitchPanelSelectNext(swpanel, !next);
|
||||
else
|
||||
newFocused = wSwitchPanelSelectFirst(swpanel, False);
|
||||
|
||||
oldFocused = change_focus_and_raise(newFocused, oldFocused, swpanel, scr, False);
|
||||
} else {
|
||||
if (wwin->frame->workspace == scr->current_workspace)
|
||||
|
||||
Reference in new issue
Block a user