From 7c6162d51a2bf49362c1548a95a257442335e0ce Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 15 May 2021 20:04:34 +0200 Subject: [PATCH] Make sure fullscreen clients get a correct fullscreen geometry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mițca Dumitru --- simple/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/simple/init.lua b/simple/init.lua index 903cbf4..f084dc3 100644 --- a/simple/init.lua +++ b/simple/init.lua @@ -745,3 +745,17 @@ end client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) -- }}} + + +-- Make sure clients requesting fullscreen get a correct fullscreen geometry +-- See https://github.com/awesomeWM/awesome/issues/3156 +-- OP: https://github.com/awesomeWM/awesome/issues/1607#issuecomment-298194491 +client.connect_signal("property::fullscreen", function(c) + if c.fullscreen then + gears.timer.delayed_call(function() + if c.valid then + c:geometry(c.screen.geometry) + end + end) + end +end)