From: Orestis Floros Date: Mon, 30 Apr 2018 00:54:38 +0000 (+0300) Subject: Fix: ConfigureNotify can crash i3 with fake-outputs X-Git-Tag: 4.16~82^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f74f8d2c188a39c2c8c46b01921e6569cb4fc81;p=i3%2Fi3 Fix: ConfigureNotify can crash i3 with fake-outputs handle_screen_change() and handle_configure_notify() call randr_query_outputs() where root_output is not initialized because randr_init() is never called when config.fake_outputs is not NULL. --- diff --git a/src/randr.c b/src/randr.c index d7e1acca..d4d7402a 100644 --- a/src/randr.c +++ b/src/randr.c @@ -856,8 +856,9 @@ void randr_query_outputs(void) { /* If there's no randr output, enable the output covering the root window. */ if (any_randr_output_active()) { DLOG("Active RandR output found. Disabling root output.\n"); - if (root_output->active) + if (root_output && root_output->active) { root_output->to_be_disabled = true; + } } else { DLOG("No active RandR output found. Enabling root output.\n"); root_output->active = true;