about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2010-02-20 20:52:21 +0000
committerMarco Peereboom <marco@conformal.com>2010-02-20 20:52:21 +0000
commit3fe2d37de3b50d859646dc2aa6ac5dc3cf3df93c (patch)
tree5c82df074594875ef5e469bb819adb36f2602a38
parent6fc791bb61cb9f8e68b707a1c0d4cabefccc5c63 (diff)
downloadxombrero-3fe2d37de3b50d859646dc2aa6ac5dc3cf3df93c.tar.gz
Make new window not the default and hide cmd
-rw-r--r--xxxterm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 0c5e954..80072d3 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -526,7 +526,11 @@ webview_event_cb(GtkWidget *w, GdkEvent *e, struct tab *t)
 	/* catch mouse buttons when hovering over a link */
 	if (e->type == GDK_BUTTON_RELEASE && t->ctrl && t->hover) {
 		DNPRINTF(XT_D_KEY, "webview_event_cb: %s\n", t->hover);
-		create_new_tab(t->hover, 1);
+		create_new_tab(t->hover, 0);
+
+		/* not sure why it reappears but hide it */
+		gtk_widget_hide(t->cmd);
+
 		return (XT_CB_HANDLED);
 	}