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 committed by Michael Stapelberg
parent fa9e6c2735
commit de0bca6389
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. */
if (!reassigned) {
tree_render(); tree_render();
}
return true; return true;
} }