1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38: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

@@ -59,6 +59,9 @@ Changes since version 0.80.2:
- Fixed a bug with not showing shaded window frames when the application is - Fixed a bug with not showing shaded window frames when the application is
hidden and another window belonging to the app is selected in the window hidden and another window belonging to the app is selected in the window
list menu list menu
- 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
Changes since version 0.80.1: Changes since version 0.80.1:

3
TODO
View File

@@ -14,6 +14,9 @@ Do ASAP:
Need to do: Need to do:
=========== ===========
- fix scaling/maxscaling code. it seem to always maxscale
- impelment a generic pixmap type, which receives attributes
(scaled/maxscaled/centered/tiled, smoothed, size/position, ...)
- allow user to select/restore default root menu from wprefs - allow user to select/restore default root menu from wprefs
- support for X11R6.4 extension for getting extra visual info in wrlib's - support for X11R6.4 extension for getting extra visual info in wrlib's
automatic best context guessing automatic best context guessing

View File

@@ -2432,16 +2432,17 @@ handleTextKeyPress(Text *tPtr, XEvent *event)
Bool i = !tPtr->flags.rulerShown; Bool i = !tPtr->flags.rulerShown;
WMShowTextRuler(tPtr, i); WMShowTextRuler(tPtr, i);
tPtr->flags.rulerShown = i; tPtr->flags.rulerShown = i;
} } else if (control_pressed && *buffer == '\a') {
else if (control_pressed && *buffer == '')
XBell(tPtr->view->screen->display, 0); XBell(tPtr->view->screen->display, 0);
else } else {
WMRelayToNextResponder(tPtr->view, event); WMRelayToNextResponder(tPtr->view, event);
} }
}
if (!control_pressed && tPtr->flags.ownsSelection) if (!control_pressed && tPtr->flags.ownsSelection) {
releaseSelection(tPtr); releaseSelection(tPtr);
} }
}
static void static void

View File

@@ -1361,6 +1361,7 @@ wUnhideApplication(WApplication *wapp, Bool miniwindows, Bool bringToCurrentWS)
WScreen *scr; WScreen *scr;
WWindow *wlist, *next; WWindow *wlist, *next;
WWindow *focused=NULL; WWindow *focused=NULL;
Bool shouldArrangeIcons = False;
if (!wapp) if (!wapp)
return; return;
@@ -1398,6 +1399,7 @@ wUnhideApplication(WApplication *wapp, Bool miniwindows, Bool bringToCurrentWS)
wlist->frame->workspace == scr->current_workspace) { wlist->frame->workspace == scr->current_workspace) {
wDeiconifyWindow(wlist); wDeiconifyWindow(wlist);
} }
shouldArrangeIcons = True;
WMPostNotificationName(WMNChangedState, wlist, "hide"); WMPostNotificationName(WMNChangedState, wlist, "hide");
} else if (wlist->flags.shaded) { } else if (wlist->flags.shaded) {
if (bringToCurrentWS) if (bringToCurrentWS)
@@ -1437,7 +1439,7 @@ wUnhideApplication(WApplication *wapp, Bool miniwindows, Bool bringToCurrentWS)
wSetFocusTo(scr, focused); wSetFocusTo(scr, focused);
} }
wapp->last_focused = NULL; wapp->last_focused = NULL;
if (wPreferences.auto_arrange_icons) { if (shouldArrangeIcons || wPreferences.auto_arrange_icons) {
wArrangeIcons(scr, True); wArrangeIcons(scr, True);
} }
#ifdef HIDDENDOT #ifdef HIDDENDOT