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.
This commit is contained in:
Michael Stapelberg 2012-08-04 15:21:16 +02:00
parent e867fd8105
commit d57d51da6d
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ void randr_query_outputs(void) {
DLOG("Fixing the coordinates of floating containers\n"); DLOG("Fixing the coordinates of floating containers\n");
Con *floating_con; Con *floating_con;
TAILQ_FOREACH(floating_con, &(current->floating_head), floating_windows) 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("Done, next\n");
} }
DLOG("re-attached all workspaces\n"); DLOG("re-attached all workspaces\n");