]> git.sur5r.net Git - i3/i3/blobdiff - src/render.c
Merge branch 'master' into next
[i3/i3] / src / render.c
index 68cbbdf4f7ec8a27903961f3061fba836c593c1c..0142ae9718f3fbd55771a222d9b08bab5d01ce42 100644 (file)
@@ -184,10 +184,10 @@ void render_con(Con *con, bool render_fullscreen) {
                     new_width--;
             }
             /* Center the window */
-            inset->y += ceil(inset->height / 2) - floor(new_height / 2);
+            inset->y += ceil(inset->height / 2) - floor((new_height + .5) / 2);
             inset->x += ceil(inset->width / 2) - floor(new_width / 2);
 
-            inset->height = new_height;
+            inset->height = new_height + .5;
             inset->width = new_width;
         }