Fullscreen & maximised clients should not have rounded corners

Former-commit-id: 53e97439dc
Former-commit-id: 6041597d5e8d9994b5506ec5b4c5c7f4ad564305
Former-commit-id: 45a17a195bf159c88288cbb9b97a3c76936322b6
Former-commit-id: a55f694e368ff56d9199da323471975f49158dcb
This commit is contained in:
Mustaqim Malim 2019-04-11 07:26:14 +02:00 committed by GitHub
parent 7e57d2b8b3
commit b59a95574b

View file

@ -762,14 +762,18 @@ if beautiful.border_radius ~= 0 then
end
end)
-- Fullscreen clients should not have rounded corners
client.connect_signal("property::fullscreen", function (c)
if c.fullscreen then
-- Fullscreen & maximised clients should not have rounded corners
local function no_round_corners (c)
if c.fullscreen or c.maximized then
c.shape = helpers.rect()
else
c.shape = helpers.rrect(beautiful.border_radius)
end
end)
end
client.connect_signal("property::fullscreen", no_round_corners)
client.connect_signal("property::maximized", no_round_corners)
end
-- When a client starts up in fullscreen, resize it to cover the fullscreen a short moment later