about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-05-15 17:11:27 -0500
committerMarco Peereboom <marco@conformal.com>2012-05-15 17:11:27 -0500
commitc5b8795f9e3202205974fd18a3846ae0ebbf708a (patch)
tree9c5135d418a989dcf4bb2a9f077fe6f0bf40d9e9 /xxxterm.c
parent89cc1b6aef8d36723e63ea9acad52bb85f468258 (diff)
downloadxombrero-c5b8795f9e3202205974fd18a3846ae0ebbf708a.tar.gz
add gdk_flush per doco and call XInitThreads per some posting on the net
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 3a9695e..b084bff 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -3435,6 +3435,7 @@ color_address_bar(gpointer p)
 	u = g_strdup(uri);
 
 #ifdef USE_THREADS
+	gdk_flush();
 	gdk_threads_leave();
 #endif
 
@@ -3506,6 +3507,7 @@ done:
 	if (u)
 		g_free((gpointer)u);
 #ifdef USE_THREADS
+	gdk_flush();
 	gdk_threads_leave();
 #endif
 }
@@ -7685,6 +7687,7 @@ main(int argc, char **argv)
 
 	/* prepare gtk */
 #ifdef USE_THREADS
+	XInitThreads();
 	g_thread_init(NULL);
 	gdk_threads_set_lock_functions(mtx_lock, mtx_unlock);
 	gdk_threads_init();
@@ -8060,6 +8063,7 @@ main(int argc, char **argv)
 	gtk_main();
 
 #ifdef USE_THREADS
+	gdk_flush();
 	gdk_threads_leave();
 	g_static_rec_mutex_unlock_full(&my_gdk_mtx); /* just in case */
 #endif