From 32d5a17fe4fac4d4752695b98cd6fbd1471fc5e4 Mon Sep 17 00:00:00 2001 From: Aaron Dill Date: Thu, 5 Sep 2024 23:16:39 -0500 Subject: [PATCH] fix: hack my way around decorations showing the panel it works. it's ugly, but it works. --- configuration/keys/global.lua | 1 + module/client/decoration.lua | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configuration/keys/global.lua b/configuration/keys/global.lua index 6a6f827..a611285 100644 --- a/configuration/keys/global.lua +++ b/configuration/keys/global.lua @@ -297,6 +297,7 @@ local globalKeys = gtable.join( local panel = s and s.top_panel if not panel then return end panel.visible = not panel.visible + panel.user_set_hidden = panel.visible == false end, { description = "Toggle the top panel visiblity", group = "hotkeys" }), gkey({ modkey, "Shift" }, "`", function() local s = ascreen.focused() ---@type AwesomeScreenInstance? diff --git a/module/client/decoration.lua b/module/client/decoration.lua index 9fced90..6b1df7c 100644 --- a/module/client/decoration.lua +++ b/module/client/decoration.lua @@ -55,8 +55,9 @@ local function changesOnScreen(currentScreen) ---@param currentScreen AwesomeScr if client.fullscreen then show_top_bar = false end -- If *any* client is fullscreen, the top panel should be hidden end - if currentScreen.top_panel then --- Hide bars when app go fullscreen - currentScreen.top_panel.visible = show_top_bar + local panel = currentScreen.top_panel + if panel and not panel.user_set_hidden then --- Hide bars when app go fullscreen + panel.visible = show_top_bar end if tag then -- Set the gap to zero if maximized tag.gap = tag_is_max and 0 or 4