13 lines
571 B
Lua
13 lines
571 B
Lua
-- 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)
|