Revert "floating_reposition: avoid extra tree_render"

This reverts commit 204eefc679.

workspace_show does not call tree_render
This commit is contained in:
Orestis Floros 2020-04-11 11:08:55 +02:00
parent bb8f2927ae
commit 755d306df3
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
1 changed files with 2 additions and 5 deletions

View File

@ -745,16 +745,13 @@ bool floating_reposition(Con *con, Rect newrect) {
con->rect = newrect; con->rect = newrect;
bool reassigned = floating_maybe_reassign_ws(con); floating_maybe_reassign_ws(con);
/* If this is a scratchpad window, don't auto center it from now on. */ /* If this is a scratchpad window, don't auto center it from now on. */
if (con->scratchpad_state == SCRATCHPAD_FRESH) if (con->scratchpad_state == SCRATCHPAD_FRESH)
con->scratchpad_state = SCRATCHPAD_CHANGED; con->scratchpad_state = SCRATCHPAD_CHANGED;
/* Workspace change will already result in a tree_render. */ tree_render();
if (!reassigned) {
tree_render();
}
return true; return true;
} }