diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-12 07:23:24 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-22 13:01:43 +0100 |
commit | 0bec06b55d847a9faad66f5a3b8331a9eb6bde03 (patch) | |
tree | 36980b91d3b802e751c163c836b6edaa81127233 /fastiv-browser.c | |
parent | 97109b1e58a68ef3cb9b5f85d4ea8bb5a6ff8cd3 (diff) | |
download | fiv-0bec06b55d847a9faad66f5a3b8331a9eb6bde03.tar.gz fiv-0bec06b55d847a9faad66f5a3b8331a9eb6bde03.tar.xz fiv-0bec06b55d847a9faad66f5a3b8331a9eb6bde03.zip |
Fix further focus issues
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); |