mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 15:12:32 +01: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:
committed by
Carlos R. Mafra
parent
f79379c090
commit
3a0eb643d9
@@ -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