mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 09:46:34 +05:30
16 lines
572 B
Lua
16 lines
572 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)
|