Fix one un-guarded use of backend_data

Fixes #127

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-03-07 23:54:13 +00:00
parent f2aeb848ec
commit 684d95988d
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 1 deletions

View File

@ -804,8 +804,9 @@ restack_win(session_t *ps, win *w, xcb_window_t new_above) {
/// Handle configure event of a root window
void configure_root(session_t *ps, int width, int height) {
// On root window changes
bool has_root_change = ps->backend_data->ops->root_change != NULL;
bool has_root_change = false;
if (ps->o.experimental_backends) {
has_root_change = ps->backend_data->ops->root_change != NULL;
if (!has_root_change) {
// deinit/reinit backend if the backend cannot handle root change
ps->backend_data->ops->deinit(ps->backend_data);