瀏覽代碼

Do not center window on screen, workaround for issue #9

master
Bert Münnich 11 年之前
父節點
當前提交
0b83386bff
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      Makefile
  2. +2
    -2
      window.c

+ 1
- 1
Makefile 查看文件

@@ -1,4 +1,4 @@
VERSION = git-20140406
VERSION = git-20140421

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man


+ 2
- 2
window.c 查看文件

@@ -224,7 +224,7 @@ void win_open(win_t *win)
}
sizehints.flags |= USPosition;
} else {
win->x = (e->scrw - win->w) / 2;
win->x = 0;
}
if ((gmask & YValue) != 0) {
if ((gmask & YNegative) != 0) {
@@ -234,7 +234,7 @@ void win_open(win_t *win)
}
sizehints.flags |= USPosition;
} else {
win->y = (e->scrh - win->h) / 2;
win->y = 0;
}

attr.background_pixel = win->bgcol;


Loading…
取消
儲存