1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

Fixed some bugs, and compilation warnings.

This commit is contained in:
dan
2000-09-24 02:31:58 +00:00
parent 41ff127444
commit ccbb6e8e15
14 changed files with 46 additions and 48 deletions

View File

@@ -144,33 +144,32 @@ Shutdown(WShutdownMode mode)
}
static restoreWindows(WMBag *bag, WMBagIterator iter)
static void
restoreWindows(WMBag *bag, WMBagIterator iter)
{
WCoreWindow *next;
WCoreWindow *core;
WWindow *wwin;
if (iter == NULL) {
core = WMBagFirst(bag, &iter);
} else {
core = WMBagNext(bag, &iter);
}
if (core == NULL)
return;
restoreWindows(bag, iter);
/* go to the end of the list */
while (core->stacking->under)
core = core->stacking->under;
while (core) {
next = core->stacking->above;
if (core->descriptor.parent_type==WCLASS_WINDOW) {
Window window;
@@ -182,7 +181,7 @@ static restoreWindows(WMBag *bag, WMBagIterator iter)
core = next;
}
}
/*
*----------------------------------------------------------------------