]> git.sur5r.net Git - i3/i3/blobdiff - src/floating.c
Merge pull request #3452 from orestisf1993/title_align
[i3/i3] / src / floating.c
index 96d7246c15950119f2e97f0d8ff51362bb36ab1f..a99d0970f356156abbd29e96a4167e7185ece558 100644 (file)
@@ -899,13 +899,17 @@ bool floating_reposition(Con *con, Rect newrect) {
 
     con->rect = newrect;
 
-    floating_maybe_reassign_ws(con);
+    bool reassigned = 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;
 
-    tree_render();
+    /* Workspace change will already result in a tree_render. */
+    if (!reassigned) {
+        render_con(con, false);
+        x_push_node(con);
+    }
     return true;
 }