diff options
author | Eon S. Jeon | 2013-12-17 12:45:38 -0500 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2013-12-18 08:11:22 +0100 |
commit | d60ee7337b5f378d8858ef3774c5552d2c8e54fa (patch) | |
tree | e9714ff107355f235ddfbbe6fe629a98579890fc | |
parent | ef1dc9fc4bdfcd944b054c329bb5d51b8c52eb5c (diff) | |
download | st-d60ee7337b5f378d8858ef3774c5552d2c8e54fa.tar.gz st-d60ee7337b5f378d8858ef3774c5552d2c8e54fa.tar.xz st-d60ee7337b5f378d8858ef3774c5552d2c8e54fa.zip |
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.
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |