mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-10 03:02:38 +08:00
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:
parent
7e57d2b8b3
commit
b59a95574b
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