From: "Rodolfo García Peñas (kix)" <k...@kix.es>

The warning about if the window is in the stack list should be removed.
wwarning("RemoveFromStackingList(): window not in list ");

The reason is because we must remove the wwin->icon from the stacking
list when the application is closed, so if the window is not minimized,
then the icon is not in the window list and then cannot be removed.
---
 src/stacking.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/stacking.c b/src/stacking.c
index 890e4d1..65927cb 100644
--- a/src/stacking.c
+++ b/src/stacking.c
@@ -559,17 +559,17 @@ void MoveInStackListUnder(WCoreWindow * prev, WCoreWindow 
* frame)
        WMPostNotificationName(WMNResetStacking, scr, NULL);
 }
 
-void RemoveFromStackList(WCoreWindow * frame)
+void RemoveFromStackList(WCoreWindow *frame)
 {
        int index = frame->stacking->window_level;
 
-       if (XDeleteContext(dpy, frame->window, wStackContext) == XCNOENT) {
-               wwarning("RemoveFromStackingList(): window not in list ");
+       if (XDeleteContext(dpy, frame->window, wStackContext) == XCNOENT)
                return;
-       }
+
        /* remove from the window stack list */
        if (frame->stacking->under)
                frame->stacking->under->stacking->above = 
frame->stacking->above;
+
        if (frame->stacking->above)
                frame->stacking->above->stacking->under = 
frame->stacking->under;
        else                    /* this was the first window on the list */
@@ -580,7 +580,7 @@ void RemoveFromStackList(WCoreWindow * frame)
        WMPostNotificationName(WMNResetStacking, frame->screen_ptr, NULL);
 }
 
-void ChangeStackingLevel(WCoreWindow * frame, int new_level)
+void ChangeStackingLevel(WCoreWindow *frame, int new_level)
 {
        int old_level;
 
-- 
1.7.10.4


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to