From: Michael Stapelberg Date: Sat, 4 Aug 2012 13:21:16 +0000 (+0200) Subject: Bugfix: Properly fix floating coordinates when disabling outputs (Thanks Tucos) X-Git-Tag: 4.3~142^2^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d57d51da6d040e8572159332224615f232c4645a;p=i3%2Fi3 Bugfix: Properly fix floating coordinates when disabling outputs (Thanks Tucos) Since the content containers are not yet updated (they will be when rendering), we need to use the output containers’s rects instead. --- 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");