Do not center window on screen, workaround for issue #9
This commit is contained in:
parent
e685859a30
commit
0b83386bff
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
VERSION = git-20140406
|
VERSION = git-20140421
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
|
4
window.c
4
window.c
|
@ -224,7 +224,7 @@ void win_open(win_t *win)
|
||||||
}
|
}
|
||||||
sizehints.flags |= USPosition;
|
sizehints.flags |= USPosition;
|
||||||
} else {
|
} else {
|
||||||
win->x = (e->scrw - win->w) / 2;
|
win->x = 0;
|
||||||
}
|
}
|
||||||
if ((gmask & YValue) != 0) {
|
if ((gmask & YValue) != 0) {
|
||||||
if ((gmask & YNegative) != 0) {
|
if ((gmask & YNegative) != 0) {
|
||||||
|
@ -234,7 +234,7 @@ void win_open(win_t *win)
|
||||||
}
|
}
|
||||||
sizehints.flags |= USPosition;
|
sizehints.flags |= USPosition;
|
||||||
} else {
|
} else {
|
||||||
win->y = (e->scrh - win->h) / 2;
|
win->y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
attr.background_pixel = win->bgcol;
|
attr.background_pixel = win->bgcol;
|
||||||
|
|
Loading…
Reference in New Issue