From 3c8c426011c482de9c0d84ba4feb2e2de4d5fc16 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 19 Mar 2010 18:51:19 +0100 Subject: [PATCH] Disable RandR if no outputs are found (Thanks fallen) --- src/randr.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 2.39.5