From a01a3fdcdea165dbc9fb1fcf737ba8a5d916dec8 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Sun, 23 Jul 2023 13:05:02 +0200 Subject: [PATCH] gtk: remove thin, white border The GTK app has a really thin, white border around the terminal contents. It's really distracting when in fullscreen. At first I thought it's the window that has a border, but turns out that's not it. It's the GTK Notebook widget. Luckily for us, GTK4 has a single API call that allows us to turn off the border. --- src/apprt/gtk.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apprt/gtk.zig b/src/apprt/gtk.zig index af1d77303..2943a4752 100644 --- a/src/apprt/gtk.zig +++ b/src/apprt/gtk.zig @@ -336,6 +336,7 @@ const Window = struct { c.gtk_notebook_set_tab_pos(notebook, c.GTK_POS_TOP); c.gtk_notebook_set_scrollable(notebook, 1); c.gtk_notebook_set_show_tabs(notebook, 0); + c.gtk_notebook_set_show_border(notebook, 0); // Create our add button for new tabs const notebook_add_btn = c.gtk_button_new_from_icon_name("list-add-symbolic");