1
0
mirror of git://git.suckless.org/st synced 2024-12-12 01:14:34 +00:00

Prevent resizing stdin

This fixes a bug that the parent tty gets resized whenever you launch
st through command line.

The problem was that ioctl was resizing cmdfd before it gets
initialized in ttynew. Since cmdfd is a global variable, its initial
value is 0, and consequently stdin was being resized.
This commit is contained in:
Eon S. Jeon 2013-12-17 12:45:38 -05:00 committed by Roberto E. Vargas Caballero
parent ef1dc9fc4b
commit d60ee7337b

2
st.c
View File

@ -3667,11 +3667,11 @@ run(void) {
}
}
ttynew();
if(!xw.isfixed)
cresize(w, h);
else
cresize(xw.fw, xw.fh);
ttynew();
gettimeofday(&lastblink, NULL);
gettimeofday(&last, NULL);