tags 401900 + patch
severity 401900 important
thanks

23:36 < Sesse> vorlon: I have a DELAYED/7-day going for the other rc bug.
               what do you say about a) I add the patch to the bts, b) we
               downgrade to important, c) we'll see if the maintainer takes
               it, and in that case uploads it at the same time?
23:36 < vorlon> sounds fair to me

So, here's a proposed patch to fix the issue; I'm not sure if it's correct,
but the same technique seems to be used in other places, and it seems to
solve the problem OK. Just drop in debian/patches.

/* Steinar */
-- 
Homepage: http://www.sesse.net/
--- wmaker-0.92.0/src/wmspec.c	2005-05-15 18:41:09.000000000 +0200
+++ wmaker-0.92.0/src/wmspec.c	2006-12-15 23:32:09.000000000 +0100
@@ -1268,11 +1273,13 @@
         XFree(data);
     }
 
-    ChangeStackingLevel(wwin->frame->core, layer);
-    wwin->frame->flags.need_texture_change = 1;
-    wWindowConfigureBorders(wwin);
-    wFrameWindowPaint(wwin->frame);
-    wNETWMUpdateActions(wwin, False);
+    if (wwin->frame) {
+        ChangeStackingLevel(wwin->frame->core, layer);
+        wwin->frame->flags.need_texture_change = 1;
+        wWindowConfigureBorders(wwin);
+        wFrameWindowPaint(wwin->frame);
+        wNETWMUpdateActions(wwin, False);
+    }
 }
 
 

Reply via email to