1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01: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:
dan
2003-02-27 07:42:46 +00:00
parent dee8c6e770
commit fdeb749da7
4 changed files with 15 additions and 6 deletions

View File

@@ -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