]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Properly call init_workspaces() when RandR is known but not present
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 23 Oct 2010 15:18:59 +0000 (17:18 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 23 Oct 2010 15:19:42 +0000 (17:19 +0200)
src/randr.c

index 7ce856d2903568911f1e4eee5e3a91e807073ffe..5a48b1762e95792dc0ea7b037b09ee67ee4346cb 100644 (file)
@@ -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;