summaryrefslogtreecommitdiff
path: root/func/sloppyfocus.lua
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2024-10-18 21:49:17 -0500
committerTim Keller <tjk@tjkeller.xyz>2024-10-18 21:49:17 -0500
commit923eb46350b1102749eb05cd2120c96cc6a715d0 (patch)
tree811da20b4195d4b5c65c8ac0090982a4a23f6a7d /func/sloppyfocus.lua
downloadawesome-923eb46350b1102749eb05cd2120c96cc6a715d0.tar.xz
awesome-923eb46350b1102749eb05cd2120c96cc6a715d0.zip
initial commit
Diffstat (limited to 'func/sloppyfocus.lua')
-rw-r--r--func/sloppyfocus.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/func/sloppyfocus.lua b/func/sloppyfocus.lua
new file mode 100644
index 0000000..a616286
--- /dev/null
+++ b/func/sloppyfocus.lua
@@ -0,0 +1,4 @@
+-- Enable sloppy focus, so that focus follows mouse.
+client.connect_signal("mouse::enter", function(c)
+ c:emit_signal("request::activate", "mouse_enter", { raise = false })
+end)