mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 13:28:05 +01:00
- Fixed crashing bug when name and class were empty for a docked app.
- Removed MIN() and MAX() macros and replaced them with WMIN() and WMAX() from WINGs. - Added a hint that Window Maker crashed, to allow windows to be placed in their correct previous positions after a crash situation and also to preserve their state before the crash (minimized, shaded, hidden, ...)
This commit is contained in:
11
src/screen.c
11
src/screen.c
@@ -1064,7 +1064,6 @@ wScreenRestoreState(WScreen *scr)
|
||||
void
|
||||
wScreenSaveState(WScreen *scr)
|
||||
{
|
||||
WWorkspaceState wstate;
|
||||
WWindow *wwin;
|
||||
char *str;
|
||||
proplist_t path, old_state, foo;
|
||||
@@ -1073,13 +1072,9 @@ wScreenSaveState(WScreen *scr)
|
||||
|
||||
make_keys();
|
||||
|
||||
/*
|
||||
* Save current workspace, so can go back to it upon restart.
|
||||
*/
|
||||
wstate.workspace = scr->current_workspace;
|
||||
|
||||
data[0] = wstate.flags;
|
||||
data[1] = wstate.workspace;
|
||||
/* Save current workspace, so can go back to it upon restart. */
|
||||
data[0] = scr->current_workspace;
|
||||
data[1] = WFLAGS_NONE;
|
||||
|
||||
XChangeProperty(dpy, scr->root_win, _XA_WINDOWMAKER_STATE,
|
||||
_XA_WINDOWMAKER_STATE, 32, PropModeReplace,
|
||||
|
||||
Reference in New Issue
Block a user