Merge pull request #27 from mustaqimM/patch-1

Fullscreen & maximised clients should not have rounded corners

Former-commit-id: 41734f12a8
Former-commit-id: b7de0c4d94536fe778080689b2b959d08d7b74dc
Former-commit-id: a7184eda895ffcc88100ed5c1f745270d9fc8a55
Former-commit-id: 500e0d79386dcf3886ff76057d5a3c24a17c18fd
This commit is contained in:
elenapan 2019-04-12 04:01:40 +03:00 committed by GitHub
commit d29f443ce9

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