projects
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
579f12d
)
Fixing the border pixel when there is a negative position.
author
Christoph Lohmann
<20h@r-36.net>
Mon, 3 Sep 2012 21:09:34 +0000
(23:09 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Mon, 3 Sep 2012 21:09:34 +0000
(23:09 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
8b30d4c
..
09b0262
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1902,11
+1902,11
@@
xinit(void) {
/* adjust fixed window geometry */
if(xw.isfixed) {
sw = DisplayWidth(xw.dpy, xw.scr);
- sh = Display
Width
(xw.dpy, xw.scr);
+ sh = Display
Height
(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;