mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 00:50:34 +02:00
fixed crash on restart
This commit is contained in:
1 parent
3e7eb14a22
commit
bdd5d5342b
1 file changed
+2
-2
+2
-2
@@ -174,7 +174,7 @@ RestoreDesktop(WScreen *scr)
|
||||
|
||||
/* reparent windows back to the root window, keeping the stacking order */
|
||||
for (core = WMBagFirst(scr->stacking_list, &iter);
|
||||
iter != NULL;
|
||||
iter != NULL && core != NULL;
|
||||
core = WMBagNext(scr->stacking_list, &iter)) {
|
||||
WCoreWindow *next;
|
||||
WWindow *wwin;
|
||||
@@ -182,7 +182,7 @@ RestoreDesktop(WScreen *scr)
|
||||
/* go to the end of the list */
|
||||
while (core->stacking->under)
|
||||
core = core->stacking->under;
|
||||
|
||||
|
||||
while (core) {
|
||||
next = core->stacking->above;
|
||||
|
||||
|
||||
Reference in new issue
Block a user