mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
- Deminiaturizing a window that is also shaded, will perform an unshade too.
(Note that this only applies to deminiaturizing shaded windows. Unhiding an application will keep the shaded/unshaded state of windows.)
This commit is contained in:
@@ -255,7 +255,7 @@ wSetFocusTo(WScreen *scr, WWindow *wwin)
|
||||
void
|
||||
wShadeWindow(WWindow *wwin)
|
||||
{
|
||||
time_t time0 = time(NULL);
|
||||
time_t time0;
|
||||
#ifdef ANIMATIONS
|
||||
int y, s, w, h;
|
||||
#endif
|
||||
@@ -263,6 +263,8 @@ wShadeWindow(WWindow *wwin)
|
||||
if (wwin->flags.shaded)
|
||||
return;
|
||||
|
||||
time0 = time(NULL);
|
||||
|
||||
XLowerWindow(dpy, wwin->client_win);
|
||||
|
||||
wSoundPlay(WSOUND_SHADE);
|
||||
@@ -329,7 +331,7 @@ wShadeWindow(WWindow *wwin)
|
||||
void
|
||||
wUnshadeWindow(WWindow *wwin)
|
||||
{
|
||||
time_t time0 = time(NULL);
|
||||
time_t time0;
|
||||
#ifdef ANIMATIONS
|
||||
int y, s, w, h;
|
||||
#endif /* ANIMATIONS */
|
||||
@@ -337,7 +339,9 @@ wUnshadeWindow(WWindow *wwin)
|
||||
|
||||
if (!wwin->flags.shaded)
|
||||
return;
|
||||
|
||||
|
||||
time0 = time(NULL);
|
||||
|
||||
wwin->flags.shaded = 0;
|
||||
wwin->flags.mapped = 1;
|
||||
XMapWindow(dpy, wwin->client_win);
|
||||
@@ -1137,6 +1141,9 @@ wDeiconifyWindow(WWindow *wwin)
|
||||
}
|
||||
|
||||
WMPostNotificationName(WMNChangedState, wwin, "iconify");
|
||||
|
||||
/* In case we were shaded and iconified, also unshade */
|
||||
wUnshadeWindow(wwin);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user