From: Michael Stapelberg Date: Fri, 19 Mar 2010 17:51:19 +0000 (+0100) Subject: Disable RandR if no outputs are found (Thanks fallen) X-Git-Tag: 3.e~6^2~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c8c426011c482de9c0d84ba4feb2e2de4d5fc16;p=i3%2Fi3 Disable RandR if no outputs are found (Thanks fallen) --- diff --git a/src/randr.c b/src/randr.c index 7531ecf2..3be654a7 100644 --- a/src/randr.c +++ b/src/randr.c @@ -458,6 +458,11 @@ void randr_query_outputs(xcb_connection_t *conn) { } } + if (TAILQ_EMPTY(&outputs)) { + ELOG("No outputs found via RandR, disabling\n"); + disable_randr(conn); + } + ewmh_update_workarea(); /* Just go through each active output and associate one workspace */