Make sure fullscreen clients get a correct fullscreen geometry
Co-authored-by: Mițca Dumitru <dumitru0mitca@gmail.com>
This commit is contained in:
parent
a0024216e8
commit
7c6162d51a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user