aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-03 23:09:34 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-03 23:09:34 +0200
commit59eaf3ce56fef229681dc24912390cf9fc434119 (patch)
treefd8d405875d69f03440ffd005d3f64077603bfda
parent31c71cddb9689859521fee0b94b56d070b23c28d (diff)
downloadst-59eaf3ce56fef229681dc24912390cf9fc434119.tar.gz
st-59eaf3ce56fef229681dc24912390cf9fc434119.tar.bz2
Fixing the border pixel when there is a negative position.
-rw-r--r--st.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/st.c b/st.c
index 8b30d4c..09b0262 100644
--- 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 = 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;