mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-28 03:07:12 +08:00
Merge pull request #27 from mustaqimM/patch-1
Fullscreen & maximised clients should not have rounded corners
This commit is contained in:
commit
41734f12a8
1 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue