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:
@@ -174,7 +174,7 @@ RestoreDesktop(WScreen *scr)
|
|||||||
|
|
||||||
/* reparent windows back to the root window, keeping the stacking order */
|
/* reparent windows back to the root window, keeping the stacking order */
|
||||||
for (core = WMBagFirst(scr->stacking_list, &iter);
|
for (core = WMBagFirst(scr->stacking_list, &iter);
|
||||||
iter != NULL;
|
iter != NULL && core != NULL;
|
||||||
core = WMBagNext(scr->stacking_list, &iter)) {
|
core = WMBagNext(scr->stacking_list, &iter)) {
|
||||||
WCoreWindow *next;
|
WCoreWindow *next;
|
||||||
WWindow *wwin;
|
WWindow *wwin;
|
||||||
@@ -182,7 +182,7 @@ RestoreDesktop(WScreen *scr)
|
|||||||
/* go to the end of the list */
|
/* go to the end of the list */
|
||||||
while (core->stacking->under)
|
while (core->stacking->under)
|
||||||
core = core->stacking->under;
|
core = core->stacking->under;
|
||||||
|
|
||||||
while (core) {
|
while (core) {
|
||||||
next = core->stacking->above;
|
next = core->stacking->above;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user