From: Dana Jansens Date: Wed, 18 Jul 2007 19:45:22 +0000 (-0400) Subject: take care when sibling is specified as an unmanaged window X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=551528c57fcdfb911342bfd6dd271cb14dd251e9;p=chaz%2Fopenbox take care when sibling is specified as an unmanaged window --- diff --git a/openbox/event.c b/openbox/event.c index 614373d6..3fa017f7 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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)