]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Properly fix floating coordinates when disabling outputs (Thanks Tucos)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Aug 2012 13:21:16 +0000 (15:21 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Aug 2012 14:09:16 +0000 (16:09 +0200)
Since the content containers are not yet updated (they will be when
rendering), we need to use the output containers’s rects instead.

src/randr.c

index 00668c18c3b959edf5e625c45f5aa543efae16b7..d29ce12882fdbcfa312e89246fd203e8a9386a18 100644 (file)
@@ -695,7 +695,7 @@ void randr_query_outputs(void) {
                     DLOG("Fixing the coordinates of floating containers\n");
                     Con *floating_con;
                     TAILQ_FOREACH(floating_con, &(current->floating_head), floating_windows)
-                        floating_fix_coordinates(floating_con, &(old_content->rect), &(first_content->rect));
+                        floating_fix_coordinates(floating_con, &(output->con->rect), &(first->con->rect));
                     DLOG("Done, next\n");
                 }
                 DLOG("re-attached all workspaces\n");