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

updated code to use new bags

arbitrary window levels
This commit is contained in:
kojima
2000-03-28 02:48:32 +00:00
parent 6672180d77
commit f5177e67d5
37 changed files with 482 additions and 214 deletions

View File

@@ -161,7 +161,8 @@ Shutdown(WShutdownMode mode)
void
RestoreDesktop(WScreen *scr)
{
int i;
WMBagIterator iter;
WCoreWindow *core;
if (scr->helper_pid > 0) {
kill(scr->helper_pid, SIGTERM);
@@ -172,14 +173,12 @@ RestoreDesktop(WScreen *scr)
wDestroyInspectorPanels();
/* reparent windows back to the root window, keeping the stacking order */
for (i=0; i<MAX_WINDOW_LEVELS; i++) {
WCoreWindow *core, *next;
for (core = WMBagFirst(scr->stacking_list, &iter);
core != NULL;
core = WMBagNext(scr->stacking_list, &iter)) {
WCoreWindow *next;
WWindow *wwin;
if (!scr->stacking_list[i])
continue;
core = scr->stacking_list[i];
/* go to the end of the list */
while (core->stacking->under)
core = core->stacking->under;