mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 17:50:34 +02:00
Autoarrange icons after unhiding an application that has miniaturized
windows, else they may cover other icons which are now in the positions they have occupied before hiding
This commit is contained in:
1 parent
dee8c6e770
commit
fdeb749da7
4 files changed
+15
-6
No files matched your search
+3
-1
@@ -1361,6 +1361,7 @@ wUnhideApplication(WApplication *wapp, Bool miniwindows, Bool bringToCurrentWS)
|
||||
WScreen *scr;
|
||||
WWindow *wlist, *next;
|
||||
WWindow *focused=NULL;
|
||||
Bool shouldArrangeIcons = False;
|
||||
|
||||
if (!wapp)
|
||||
return;
|
||||
@@ -1398,6 +1399,7 @@ wUnhideApplication(WApplication *wapp, Bool miniwindows, Bool bringToCurrentWS)
|
||||
wlist->frame->workspace == scr->current_workspace) {
|
||||
wDeiconifyWindow(wlist);
|
||||
}
|
||||
shouldArrangeIcons = True;
|
||||
WMPostNotificationName(WMNChangedState, wlist, "hide");
|
||||
} else if (wlist->flags.shaded) {
|
||||
if (bringToCurrentWS)
|
||||
@@ -1437,7 +1439,7 @@ wUnhideApplication(WApplication *wapp, Bool miniwindows, Bool bringToCurrentWS)
|
||||
wSetFocusTo(scr, focused);
|
||||
}
|
||||
wapp->last_focused = NULL;
|
||||
if (wPreferences.auto_arrange_icons) {
|
||||
if (shouldArrangeIcons || wPreferences.auto_arrange_icons) {
|
||||
wArrangeIcons(scr, True);
|
||||
}
|
||||
#ifdef HIDDENDOT
|
||||
|
||||
Reference in new issue
Block a user