tFixing the border pixel when there is a negative position. - st - [fork] custo… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 1d6702024b8930587f719288b86ba5b931ad557c | |
parent 579f12d47b38e23abb1073b8e70d67c0c203c42c | |
Author: Christoph Lohmann <[email protected]> | |
Date: Mon, 3 Sep 2012 23:09:34 +0200 | |
Fixing the border pixel when there is a negative position. | |
Diffstat: | |
M st.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -1902,11 +1902,11 @@ xinit(void) { | |
/* adjust fixed window geometry */ | |
if(xw.isfixed) { | |
sw = DisplayWidth(xw.dpy, xw.scr); | |
- sh = DisplayWidth(xw.dpy, xw.scr); | |
+ sh = DisplayHeight(xw.dpy, xw.scr); | |
if(xw.fx < 0) | |
- xw.fx = sw + xw.fx - xw.fw; | |
+ xw.fx = sw + xw.fx - xw.fw - 1; | |
if(xw.fy < 0) | |
- xw.fy = sh + xw.fy - xw.fh; | |
+ xw.fy = sh + xw.fy - xw.fh - 1; | |
} else { | |
/* window - default size */ | |
xw.h = 2*BORDER + term.row * xw.ch; |