1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 05:18:06 +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:
dan
2001-11-20 13:48:23 +00:00
parent af287fb8eb
commit 0c4dc1c24a
2 changed files with 14 additions and 4 deletions

View File

@@ -16,7 +16,10 @@ Changes since version 0.70.0:
- SIGTERM is now handled and saves the internal state before exiting (like
SIGHUP and SIGINT already do). Now a "kill wmaker_pid" will exit cleanly
saving dock/clip/session information on exit.
- added an internal strcasecmp() to WINGs (only on systems where's not present)
- Added an internal strcasecmp() to WINGs (only on systems where's not present)
- 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.)
Changes since version 0.65.1:

View File

@@ -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 */
@@ -338,6 +340,8 @@ 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);
}