[hackers] [st] The xinit() call needs to be behind all the tty init, otherwise all the || Christoph Lohmann
changeset: 330:c9852110f515
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Mon Sep 24 11:04:26 2012 +0200
files: st.c
description:
The xinit() call needs to be behind all the tty init, otherwise all the
allocated structures are wrong. The xclear() is now done on purpose. Please
keep X11 calls out of the way of pure tty-related calls.
diff -r 6761f4b46623 -r c9852110f515 st.c
--- a/st.c Mon Sep 24 10:31:35 2012 +0200
+++ b/st.c Mon Sep 24 11:04:26 2012 +0200
_AT_@ -953,7 +953,7 @@
term.tabs[i] = 1;
term.top = 0, term.bot = term.row - 1;
term.mode = MODE_WRAP;
- xclear(0, 0, xw.w, xw.h);
+
tclearregion(0, 0, term.col-1, term.row-1);
}
_AT_@ -1728,6 +1728,7 @@
case 'c': /* RIS -- Reset to inital state */
treset();
term.esc = 0;
+ xclear(0, 0, xw.w, xw.h);
xresettitle();
break;
case '=': /* DECPAM -- Application keypad */
_AT_@ -2456,9 +2457,9 @@
run:
setlocale(LC_CTYPE, "");
- xinit();
tnew(80, 24);
ttynew();
+ xinit();
selinit();
run();
return 0;
Received on Mon Sep 24 2012 - 11:06:50 CEST
This archive was generated by hypermail 2.3.0
: Mon Sep 24 2012 - 11:12:10 CEST