diff options
Diffstat (limited to 'fastiv-browser.c')
-rw-r--r-- | fastiv-browser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fastiv-browser.c b/fastiv-browser.c index 5411989..50c4676 100644 --- a/fastiv-browser.c +++ b/fastiv-browser.c @@ -614,7 +614,8 @@ fastiv_browser_button_press_event(GtkWidget *widget, GdkEventButton *event) FastivBrowser *self = FASTIV_BROWSER(widget); if (event->type != GDK_BUTTON_PRESS || event->state != 0) return FALSE; - if (event->button == GDK_BUTTON_PRIMARY) + if (event->button == GDK_BUTTON_PRIMARY && + gtk_widget_get_focus_on_click(widget)) gtk_widget_grab_focus(widget); const Entry *entry = entry_at(self, event->x, event->y); |