Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correctly set window height after i_fit_to_img()

  • Loading branch information...
commit a5270253149c278b5baf6ffa77bfddce050b798d 1 parent f7301cf
@muennich authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  window.c
View
3  window.c
@@ -287,6 +287,9 @@ bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h)
if (win == NULL || win->xwin == None)
return false;
+ /* caller knows nothing about the bar */
+ h += win->bar.h;
+
x = MAX(0, x);
y = MAX(0, y);
w = MIN(w, win->env.scrw - 2 * win->bw);
Please sign in to comment.
Something went wrong with that request. Please try again.