diff options
author | Bert Münnich <be.muennich@gmail.com> | 2013-02-09 01:39:18 +0100 |
---|---|---|
committer | Bert Münnich <be.muennich@gmail.com> | 2013-02-09 01:39:18 +0100 |
commit | a5270253149c278b5baf6ffa77bfddce050b798d (patch) | |
tree | 23d51dcd64eb14552e9cd4b1a69ab29de8bec244 | |
parent | f7301cf4f9f93a00faecbf8701e690ba99ddac35 (diff) |
Correctly set window height after i_fit_to_img()
-rw-r--r-- | window.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |