take care when sibling is specified as an unmanaged window

This commit is contained in:
Dana Jansens 2007-07-18 15:45:22 -04:00
parent 73b3838d5e
commit 551528c57f

View 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)