]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Apply workspaces to screens when Xinerama is turned off (Thanks Igor, Urs)
authorMichael Stapelberg <michael+git@stapelberg.de>
Tue, 31 Mar 2009 17:17:31 +0000 (19:17 +0200)
committerMichael Stapelberg <michael+git@stapelberg.de>
Tue, 31 Mar 2009 17:17:31 +0000 (19:17 +0200)
src/xinerama.c

index ac820bd8d14bb999b365e2ba8964257918f0bdf2..6b8d15ec2a2738f001e752d40a9b0909ae9ab4a6 100644 (file)
@@ -208,15 +208,12 @@ void initialize_xinerama(xcb_connection_t *conn) {
 
         if (reply == NULL || !reply->state) {
                 LOG("Xinerama is not active (in your X-Server), disabling.\n");
-                FREE(reply);
                 disable_xinerama(conn);
-                return;
-        }
+        } else
+                query_screens(conn, virtual_screens);
 
         FREE(reply);
 
-        query_screens(conn, virtual_screens);
-
         i3Screen *s;
         num_screens = 0;
         /* Just go through each workspace and associate as many screens as we can. */