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:
parent
3334e27710
commit
8f9e87124a
|
@ -931,7 +931,7 @@ int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t *
|
||||||
else {
|
else {
|
||||||
uint32_t background_color;
|
uint32_t background_color;
|
||||||
/* Distinguish if the window is currently focused… */
|
/* Distinguish if the window is currently focused… */
|
||||||
if (CUR_CELL->currently_focused == client)
|
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;
|
||||||
|
|
Loading…
Reference in New Issue