my-config/awesome/signal/client.lua

14 lines
571 B
Lua
Raw Permalink Normal View History

2024-08-20 13:20:26 +00:00
-- Add a titlebar if titlebars_enabled is set to true for the client in `config/rules.lua`.
client.connect_signal('request::titlebars', function(c)
-- While this isn't actually in the example configuration, it's the most sane thing to do.
-- If a client expressly says not to draw titlebars on it, just don't.
if c.requests_no_titlebars then return end
require('ui.titlebar').normal(c)
end)
-- Enable sloppy focus, so that focus follows mouse.
client.connect_signal('mouse::enter', function(c)
c:activate({ context = 'mouse_enter', raise = false })
end)