X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=d7d70e7007342390bac193588e308560343bae17;hb=44db38a5f8560564851683f80e1a649836e5885c;hp=c4eafa0aa5171a61bc7fc241c8d2eb08dac0bb98;hpb=1e7816c2023f48728e15cc4128ad8be163986902;p=st.git diff --git a/st.c b/st.c index c4eafa0..d7d70e7 100644 --- a/st.c +++ b/st.c @@ -2358,10 +2358,8 @@ xresize(int col, int row) { XFreePixmap(xw.dpy, xw.buf); xw.buf = XCreatePixmap(xw.dpy, xw.win, xw.w, xw.h, DefaultDepth(xw.dpy, xw.scr)); - XSetForeground(xw.dpy, dc.gc, dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg].pixel); - XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, xw.w, xw.h); - XftDrawChange(xw.draw, xw.buf); + xclear(0, 0, xw.w, xw.h); } static inline ushort @@ -3419,6 +3417,8 @@ run: xinit(); ttynew(); selinit(); + if(xw.isfixed) + cresize(xw.h, xw.w); run(); return 0;