diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-09-03 23:09:34 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-09-03 23:09:34 +0200 |
commit | 1d6702024b8930587f719288b86ba5b931ad557c (patch) | |
tree | fd8d405875d69f03440ffd005d3f64077603bfda /st.c | |
parent | 579f12d47b38e23abb1073b8e70d67c0c203c42c (diff) | |
download | st-1d6702024b8930587f719288b86ba5b931ad557c.tar.gz st-1d6702024b8930587f719288b86ba5b931ad557c.tar.bz2 st-1d6702024b8930587f719288b86ba5b931ad557c.zip |
Fixing the border pixel when there is a negative position.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |