X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=st.c;h=09b0262b553affc78854aff294003df0c0c5f6d1;hb=1d6702024b8930587f719288b86ba5b931ad557c;hp=8b30d4ca6bd8021f65e0be0e824427579355dc63;hpb=579f12d47b38e23abb1073b8e70d67c0c203c42c;p=st.git 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;