use disable_smart_borders property instead of titlebars_enabled

This commit is contained in:
BZ 2022-10-21 14:21:13 +02:00
parent 880926d6c5
commit 9285a3292e
2 changed files with 17 additions and 2 deletions

View File

@ -241,6 +241,21 @@ color_marked_normal = "#ffff00",
color_marked_hover = "#ff0000", color_marked_hover = "#ff0000",
``` ```
Disable:
------------
To disable `smart_borders` for certain clients you can set the
`disable_smart_borders` property:
```
ruled.client.append_rule({
id = "dont_show_smart_borders",
rule = { class = "myclass" },
properties = {
disable_smart_borders = true,
},
})
```
Integration / Signals: Integration / Signals:
------------ ------------
It is possible to use `smart_borders` features in other modules by emitting signals. It is possible to use `smart_borders` features in other modules by emitting signals.

View File

@ -933,9 +933,9 @@ local function new(config)
end end
client.connect_signal("request::tag", smart_border_titlebars) client.connect_signal("request::tag", smart_border_titlebars)
client.connect_signal("property::titlebars_enabled", function(c) client.connect_signal("property::disable_smart_borders", function(c)
for _, pos in pairs(positions) do for _, pos in pairs(positions) do
if c.titlebars_enabled == false then if c.disable_smart_borders then
awful.titlebar.hide(c, pos) awful.titlebar.hide(c, pos)
else else
awful.titlebar.show(c, pos) awful.titlebar.show(c, pos)