From d57d51da6d040e8572159332224615f232c4645a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 4 Aug 2012 15:21:16 +0200 Subject: [PATCH] Bugfix: Properly fix floating coordinates when disabling outputs (Thanks Tucos) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/randr.c b/src/randr.c index 00668c18..d29ce128 100644 --- a/src/randr.c +++ b/src/randr.c @@ -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"); -- 2.39.5