From 78554969e08345a065bb36d97ae9ae5e2e1e0ac8 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 27 Oct 2011 14:47:53 -0500 Subject: make sure we initialize the script --- xxxterm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xxxterm.c b/xxxterm.c index f303535..82955ae 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -245,6 +245,7 @@ struct tab { GThread *thread; #endif /* hints */ + int script_init; int hints_on; int new_tab; @@ -2411,6 +2412,12 @@ run_script(struct tab *t, char *s) DNPRINTF(XT_D_JS, "run_script: tab %d %s\n", t->tab_id, s == (char *)JS_HINTING ? "JS_HINTING" : s); + /* a bit silly but it prevents some heartburn */ + if (t->script_init == 0) { + t->script_init = 1; + run_script(t, JS_HINTING); + } + frame = webkit_web_view_get_main_frame(t->wv); ctx = webkit_web_frame_get_global_context(frame); -- cgit 1.4.1-2-gfad0 ted'>hlt Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/.gitattributes
blob: 43b82e97691836391da6710e54414934e4a866e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11