about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--xxxterm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 3dd2464..0f2ccf8 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -4946,6 +4946,9 @@ cmd_focusout_cb(GtkWidget *w, GdkEventFocus *e, struct tab *t)
 	DNPRINTF(XT_D_CMD, "cmd_focusout_cb: tab %d focus_wv %d\n",
 	    t->tab_id, t->focus_wv);
 
+	hide_cmd(t);
+	hide_oops(t);
+
 	if (t->focus_wv)
 		gtk_widget_grab_focus(GTK_WIDGET(t->wv));
 	else
@@ -5434,12 +5437,6 @@ create_new_tab(char *title, struct undo *u, int focus)
 	    "signal::focus-out-event", (GCallback)cmd_focusout_cb, t,
 	    "signal::activate", (GCallback)cmd_activate_cb, t,
 	    (char *)NULL);
-	g_object_connect((GObject*)t->oops,
-	    "signal::key-press-event", (GCallback)cmd_keypress_cb, t,
-	    "signal::key-release-event", (GCallback)cmd_keyrelease_cb, t,
-	    "signal::focus-out-event", (GCallback)cmd_focusout_cb, t,
-	    "signal::activate", (GCallback)cmd_activate_cb, t,
-	    (char *)NULL);
 
 	g_object_connect((GObject*)t->wv,
 	    "signal::key-press-event", (GCallback)wv_keypress_cb, t,