Browse Source

Make sure fullscreen clients get a correct fullscreen geometry

Co-authored-by: Mițca Dumitru <dumitru0mitca@gmail.com>
develop
Alice Gaudon 1 month ago
parent
commit
957452c55b
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      simple/init.lua

+ 14
- 0
simple/init.lua View File

@ -740,3 +740,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)

Loading…
Cancel
Save