去除 Awesome WM 最大化窗口的圆角

为什么这段代码失败了?

client.connect_signal("manage", function (c)
    if not c.maximized then
        c.shape = gears.shape.rounded_rect
    end
end)

client.connect_signal("property::maximized", function (c)
    c.shape = gears.shape.rectangle
end)

当在 rule = {} 的回调函数中设置圆角时,它同样会失败。

点赞