From af9749b1b92f1703b175e79f2d0fc5557978993a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 23 Oct 2010 17:18:59 +0200 Subject: [PATCH] Bugfix: Properly call init_workspaces() when RandR is known but not present --- src/randr.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/randr.c b/src/randr.c index 7ce856d2..5a48b176 100644 --- a/src/randr.c +++ b/src/randr.c @@ -523,9 +523,13 @@ void initialize_randr(xcb_connection_t *conn, int *event_base) { const xcb_query_extension_reply_t *extreply; extreply = xcb_get_extension_data(conn, &xcb_randr_id); - if (!extreply->present) + if (!extreply->present) { disable_randr(conn); - else randr_query_outputs(conn); + init_workspaces(); + return; + } + + randr_query_outputs(conn); if (event_base != NULL) *event_base = extreply->first_event; -- 2.39.5