mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +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:
@@ -59,6 +59,9 @@ Changes since version 0.80.2:
|
||||
- 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
|
||||
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:
|
||||
|
||||
3
TODO
3
TODO
@@ -14,6 +14,9 @@ Do ASAP:
|
||||
|
||||
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
|
||||
- support for X11R6.4 extension for getting extra visual info in wrlib's
|
||||
automatic best context guessing
|
||||
|
||||
@@ -2432,15 +2432,16 @@ handleTextKeyPress(Text *tPtr, XEvent *event)
|
||||
Bool i = !tPtr->flags.rulerShown;
|
||||
WMShowTextRuler(tPtr, i);
|
||||
tPtr->flags.rulerShown = i;
|
||||
}
|
||||
else if (control_pressed && *buffer == '')
|
||||
} else if (control_pressed && *buffer == '\a') {
|
||||
XBell(tPtr->view->screen->display, 0);
|
||||
else
|
||||
} else {
|
||||
WMRelayToNextResponder(tPtr->view, event);
|
||||
}
|
||||
}
|
||||
|
||||
if (!control_pressed && tPtr->flags.ownsSelection)
|
||||
if (!control_pressed && tPtr->flags.ownsSelection) {
|
||||
releaseSelection(tPtr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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