X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=70caf8294cd4773b19e483bb78597572a2f1c2c1;hb=b8d6171cb00c28e4c90e58e101554097003b59d3;hp=a104a504f3e12cfebbe839225bf1c2a6a114af64;hpb=f27b44b7c271bda4ad3a0c4043bb709e0a4e4fbb;p=st.git diff --git a/st.c b/st.c index a104a50..70caf82 100644 --- a/st.c +++ b/st.c @@ -1855,7 +1855,10 @@ tsetmode(bool priv, bool set, int *args, int narg) { MODBIT(term.mode, set, MODE_8BIT); break; case 1049: /* swap screen & set/restore cursor as xterm */ + if (!allowaltscreen) + break; tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD); + /* FALLTHRU */ case 47: /* swap screen */ case 1047: if (!allowaltscreen) @@ -3089,7 +3092,7 @@ xinit(void) { xresettitle(); XMapWindow(xw.dpy, xw.win); xhints(); - XSync(xw.dpy, 0); + XSync(xw.dpy, False); } void