Re-enable panel hiding on full-screen
This commit is contained in:
parent
7ab7fdbb81
commit
96166882b2
|
@ -1,11 +1,3 @@
|
||||||
-- ████████╗ ██████╗ ██████╗ █
|
|
||||||
-- █████╗ █████╗ ███╗ ██╗███████╗██╗
|
|
||||||
-- ╚══██╔══╝██╔═══██╗██╔══██╗ ██╔══██╗██╔══██╗████╗ ██║██╔════╝██║
|
|
||||||
-- ██║ ██║ ██║██████╔╝ ██████╔╝███████║██╔██╗ ██║█████╗ ██║
|
|
||||||
-- ██║ ██║ ██║██╔═══╝ ██╔═══╝ ██╔══██║██║╚██╗██║██╔══╝ ██║
|
|
||||||
-- ██║ ╚██████╔╝██║ ██║ ██║ ██║██║ ╚████║███████╗███████╗
|
|
||||||
-- ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚══════╝
|
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Initialization
|
-- Initialization
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
@ -142,6 +134,17 @@ top_panel.create = function(s)
|
||||||
-- Functionality
|
-- Functionality
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
|
-- hide panel when client is fullscreen
|
||||||
|
local function change_panel_visibility(client)
|
||||||
|
if client.screen == s then
|
||||||
|
panel.ontop = not client.fullscreen
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- connect panel visibility function to relevant signals
|
||||||
|
client.connect_signal("property::fullscreen", change_panel_visibility)
|
||||||
|
client.connect_signal("focus", change_panel_visibility)
|
||||||
|
|
||||||
client.connect_signal("focus", function (c, _)
|
client.connect_signal("focus", function (c, _)
|
||||||
current_tag_list:reset(current_tag_list)
|
current_tag_list:reset(current_tag_list)
|
||||||
current_tag_list:add(tag_lists[c.screen])
|
current_tag_list:add(tag_lists[c.screen])
|
||||||
|
|
Loading…
Reference in New Issue