From 92634b8d57203ea195208c1f6e9e04740e3c335b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 28 Dec 2024 10:43:28 +0100 Subject: src/main-window.vala: Recuce the menubar height when settings struts by 7px ( x scaling factor). --- src/main-window.vala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main-window.vala') diff --git a/src/main-window.vala b/src/main-window.vala index ddd2f1c..492c8fd 100644 --- a/src/main-window.vala +++ b/src/main-window.vala @@ -271,6 +271,9 @@ public class MainWindow : Gtk.Window Gdk.Atom atom; long struts[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; + /* Subtract (non-scaled) 5px border + 2px extra spacing (to make indicator menus render nicely below menubar) */ + menubar_size = menubar_size - 7; + // Struts dependent on position switch (position) { case MenubarPositions.TOP: -- cgit v1.2.3