mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-21 23:05:59 +01:00
Fixing the border pixel when there is a negative position.
This commit is contained in:
parent
579f12d47b
commit
1d6702024b
1 changed files with 3 additions and 3 deletions
6
st.c
6
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;
|
||||
|
|
Loading…
Reference in a new issue