diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-07-18 15:45:22 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-07-18 15:45:22 -0400 |
| commit | 551528c57fcdfb911342bfd6dd271cb14dd251e9 (patch) | |
| tree | 75862545db4f9297e1d7a456754f422871253f5c | |
| parent | 73b3838d5e22b209143ab236a2b329aa9be65475 (diff) | |
take care when sibling is specified as an unmanaged window
| -rw-r--r-- | openbox/event.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
