discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 3.1 OK for gnustep?


From: Jeff Teunissen
Subject: Re: gcc 3.1 OK for gnustep?
Date: Tue, 01 Oct 2002 00:07:23 -0400

"Chris B. Vetter" wrote:

[snip]

> Except for the occasional (and expected) "urgh, SIGSEGV received" from
> Window Maker ;-)

attached is a patch that might help with this.

-- 
| Jeff Teunissen  -=-  Pres., Dusk To Dawn Computing  -=-  deek @ d2dc.net
| GPG: 1024D/9840105A   7102 808A 7733 C2F3 097B  161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project        http://www.quakeforge.net/
| Specializing in Debian GNU/Linux              http://www.d2dc.net/~deek/
--- wmaker-0.80.0/src/stacking.c        2001-09-14 06:19:55.000000000 -0400
+++ wmaker-0.80.0.local/src/stacking.c  2002-06-16 19:23:12.000000000 -0400
@@ -211,7 +211,10 @@
        
     frame->stacking->above = NULL;
     frame->stacking->under = WMGetFromBag(scr->stacking_list, level);
-    frame->stacking->under->stacking->above = frame;
+
+    if (frame->stacking->under)
+       frame->stacking->under->stacking->above = frame;
+
     WMSetInBag(scr->stacking_list, level, frame);
 
     /* raise transients under us from bottom to top 
@@ -340,10 +343,15 @@
     } 
     /* insert under the place found */
     frame->stacking->above = wlist;
-    frame->stacking->under = wlist->stacking->under;
-    if (wlist->stacking->under)
-       wlist->stacking->under->stacking->above = frame;
-    wlist->stacking->under = frame;
+
+    if (wlist) {
+       frame->stacking->under = wlist->stacking->under;
+       if (wlist->stacking->under)
+           wlist->stacking->under->stacking->above = frame;
+       wlist->stacking->under = frame;
+    } else {
+       frame->stacking->under = NULL;
+    }
 
     if (frame->stacking->above == NULL) {
        WMBagIterator iter;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]