1
0
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:
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 - 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 SIGHUP and SIGINT already do). Now a "kill wmaker_pid" will exit cleanly
saving dock/clip/session information on exit. 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: Changes since version 0.65.1:

View File

@@ -255,7 +255,7 @@ wSetFocusTo(WScreen *scr, WWindow *wwin)
void void
wShadeWindow(WWindow *wwin) wShadeWindow(WWindow *wwin)
{ {
time_t time0 = time(NULL); time_t time0;
#ifdef ANIMATIONS #ifdef ANIMATIONS
int y, s, w, h; int y, s, w, h;
#endif #endif
@@ -263,6 +263,8 @@ wShadeWindow(WWindow *wwin)
if (wwin->flags.shaded) if (wwin->flags.shaded)
return; return;
time0 = time(NULL);
XLowerWindow(dpy, wwin->client_win); XLowerWindow(dpy, wwin->client_win);
wSoundPlay(WSOUND_SHADE); wSoundPlay(WSOUND_SHADE);
@@ -329,7 +331,7 @@ wShadeWindow(WWindow *wwin)
void void
wUnshadeWindow(WWindow *wwin) wUnshadeWindow(WWindow *wwin)
{ {
time_t time0 = time(NULL); time_t time0;
#ifdef ANIMATIONS #ifdef ANIMATIONS
int y, s, w, h; int y, s, w, h;
#endif /* ANIMATIONS */ #endif /* ANIMATIONS */
@@ -337,7 +339,9 @@ wUnshadeWindow(WWindow *wwin)
if (!wwin->flags.shaded) if (!wwin->flags.shaded)
return; return;
time0 = time(NULL);
wwin->flags.shaded = 0; wwin->flags.shaded = 0;
wwin->flags.mapped = 1; wwin->flags.mapped = 1;
XMapWindow(dpy, wwin->client_win); XMapWindow(dpy, wwin->client_win);
@@ -1137,6 +1141,9 @@ wDeiconifyWindow(WWindow *wwin)
} }
WMPostNotificationName(WMNChangedState, wwin, "iconify"); WMPostNotificationName(WMNChangedState, wwin, "iconify");
/* In case we were shaded and iconified, also unshade */
wUnshadeWindow(wwin);
} }