commit: 7bf4ee8fa095be083bdbd4978a657b7fbdd6b47a
parent: 8417d6af927813e32db7fb6bfc15213e3800303c
author: Chris Noxz <chris@noxz.tech>
date: Fri, 5 May 2023 13:13:34 +0200
prevent notebook from stealing focus
1 file changed, 3 insertions(+)
diff --git a/browser.c b/browser.c
@@ -810,6 +810,9 @@ main_window_setup(void)
gtk_notebook_set_scrollable(GTK_NOTEBOOK(mw.nb), TRUE);
gtk_notebook_set_tab_pos(GTK_NOTEBOOK(mw.nb), GTK_POS_TOP);
+ /* prevent notebook (including tabs) from stealing focus */
+ gtk_widget_set_can_focus(mw.nb, FALSE);
+
/* pack everything in a vertical box */
gtk_box_pack_start(GTK_BOX(v), mw.nb, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(v), mw.dbx, FALSE, FALSE, 0);