]> Dogcows Code - chaz/openbox/commitdiff
take care when sibling is specified as an unmanaged window
authorDana Jansens <danakj@orodu.net>
Wed, 18 Jul 2007 19:45:22 +0000 (15:45 -0400)
committerDana Jansens <danakj@orodu.net>
Wed, 18 Jul 2007 19:45:22 +0000 (15:45 -0400)
openbox/event.c

index 614373d6c85a008658dd88f47ab8b80cc4067a5a..3fa017f73afae8cf2ca6eea2fedcef763c338d6b 100644 (file)
@@ -1073,8 +1073,11 @@ static void event_handle_client(ObClient *client, XEvent *e)
                 ObWindow *win;
                 win = g_hash_table_lookup(window_map,
                                           &e->xconfigurerequest.above);
-                if (WINDOW_IS_CLIENT(win) && WINDOW_AS_CLIENT(win) != client)
+                if (win && WINDOW_IS_CLIENT(win) &&
+                    WINDOW_AS_CLIENT(win) != client)
+                {
                     sibling = WINDOW_AS_CLIENT(win);
+                }
             }
 
             if (!config_focus_under_mouse)
This page took 0.027323 seconds and 4 git commands to generate.