diff options
author | Marco Peereboom <marco@conformal.com> | 2011-01-12 21:11:38 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-01-12 21:11:38 +0000 |
commit | ea3e824d6c21f1ed36204da81dc42aad7618e4bb (patch) | |
tree | a7d8800cb060f2ad01c006993e4c0e341ee18786 | |
parent | 5756cc2caac6cc83d9a7d576a5fc9180775237f8 (diff) | |
download | xombrero-ea3e824d6c21f1ed36204da81dc42aad7618e4bb.tar.gz |
when hiding the url entry also move focus to browser
-rw-r--r-- | xxxterm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xxxterm.c b/xxxterm.c index 0b62448..4bbcb2d 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -2949,11 +2949,13 @@ move(struct tab *t, struct karg *args) void url_set_visibility(void) { - struct tab *t; + struct tab *t; + TAILQ_FOREACH(t, &tabs, entry) { - if (show_url == 0) + if (show_url == 0) { gtk_widget_hide(t->toolbar); - else + gtk_widget_grab_focus(GTK_WIDGET(t->wv)); + } else gtk_widget_show(t->toolbar); } } @@ -2971,6 +2973,7 @@ int fullscreen(struct tab *t, struct karg *args) { DNPRINTF(XT_D_TAB, "urlaction: %p %d %d\n", t, args->i, t->focus_wv); + if (t == NULL) return (XT_CB_PASSTHROUGH); |