瀏覽代碼

Correctly set window height after i_fit_to_img()

master
Bert Münnich 12 年之前
父節點
當前提交
a527025314
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      window.c

+ 3
- 0
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);


Loading…
取消
儲存