From 551528c57fcdfb911342bfd6dd271cb14dd251e9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 18 Jul 2007 15:45:22 -0400 Subject: [PATCH] take care when sibling is specified as an unmanaged window --- openbox/event.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.45.2