Bugfix: Fix NULL pointer dereference when reconfiguring screens

This did not happen all the time. It seems like you need to have a
container which is in stacking/tabbing mode on the screen which
is being reconfigured. (when doing xrandr --output VGA1 --off for
example)
This commit is contained in:
Michael Stapelberg 2009-10-12 18:31:31 +02:00
parent 1d80fd6aa4
commit 04884ab8cd
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t *
if (client->urgent) if (client->urgent)
background_color = config.client.urgent.background; background_color = config.client.urgent.background;
/* Distinguish if the window is currently focused… */ /* Distinguish if the window is currently focused… */
else if (CUR_CELL->currently_focused == client) else if (CUR_CELL != NULL && CUR_CELL->currently_focused == client)
background_color = config.client.focused.background; background_color = config.client.focused.background;
/* …or if it is the focused window in a not focused container */ /* …or if it is the focused window in a not focused container */
else background_color = config.client.focused_inactive.background; else background_color = config.client.focused_inactive.background;