diff options
author | Orestis Floros <orestisflo@gmail.com> | 2020-04-11 11:08:55 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2020-04-22 08:54:40 +0200 |
commit | de0bca6389bb6f471f46a9e2362a46014448732f (patch) | |
tree | 9214985c54ca41abe3a63a907c9d91fb4179b013 | |
parent | fa9e6c273571a03f68870d02ffca8a000f04d3d1 (diff) | |
download | i3-de0bca6389bb6f471f46a9e2362a46014448732f.tar.gz i3-de0bca6389bb6f471f46a9e2362a46014448732f.zip |
Revert "floating_reposition: avoid extra tree_render"
This reverts commit 204eefc67975f0ed1afb3b513f8fc4eb2020d2f6.
workspace_show does not call tree_render
-rw-r--r-- | src/floating.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/floating.c b/src/floating.c index 69a4f54c..bd52cdb6 100644 --- a/src/floating.c +++ b/src/floating.c @@ -745,16 +745,13 @@ bool floating_reposition(Con *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 (con->scratchpad_state == SCRATCHPAD_FRESH) con->scratchpad_state = SCRATCHPAD_CHANGED; - /* Workspace change will already result in a tree_render. */ - if (!reassigned) { - tree_render(); - } + tree_render(); return true; } |