1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

fixed crash on restart

This commit is contained in:
kojima
1999-09-18 22:38:17 +00:00
parent 81c2bf97c2
commit 057da64de7

View File

@@ -2215,7 +2215,8 @@ wWindowSaveState(WWindow *wwin)
data[3] = wwin->flags.hidden;
for (i = 0; i < MAX_WINDOW_SHORTCUTS; i++) {
if (WMCountInBag(wwin->screen_ptr->shortcutWindows[i], wwin))
if (wwin->screen_ptr->shortcutWindows[i] &&
WMCountInBag(wwin->screen_ptr->shortcutWindows[i], wwin))
data[9] |= 1<<i;
}
XChangeProperty(dpy, wwin->client_win, _XA_WINDOWMAKER_STATE,