Big changes
This commit is contained in:
@@ -22,6 +22,24 @@ client.connect_signal(
|
||||
end
|
||||
)
|
||||
|
||||
client.connect_signal(
|
||||
"unmanage",
|
||||
function(_)
|
||||
local focus_timer = timer({ timeout = 0.05 })
|
||||
focus_timer:connect_signal(
|
||||
"timeout",
|
||||
function()
|
||||
local c = awful.mouse.client_under_pointer()
|
||||
if c ~= nil and not c.below then
|
||||
client.focus = c
|
||||
c:raise()
|
||||
end
|
||||
focus_timer:stop()
|
||||
end)
|
||||
focus_timer:start()
|
||||
end
|
||||
)
|
||||
|
||||
-- Enable sloppy focus, so that focus follows mouse.
|
||||
client.connect_signal(
|
||||
"mouse::enter",
|
||||
@@ -75,7 +93,6 @@ client.connect_signal(
|
||||
update_titlebars
|
||||
)
|
||||
|
||||
-- Automatically unminimize windows
|
||||
client.connect_signal(
|
||||
"property::minimized",
|
||||
function(c)
|
||||
@@ -85,14 +102,15 @@ client.connect_signal(
|
||||
end
|
||||
)
|
||||
|
||||
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
||||
screen.connect_signal("property::geometry", set_wallpaper)
|
||||
screen.connect_signal(
|
||||
"property::geometry",
|
||||
set_wallpaper
|
||||
)
|
||||
|
||||
tag.connect_signal(
|
||||
"property::selected",
|
||||
function (t)
|
||||
local selected = tostring(t.selected) == "false"
|
||||
if selected then
|
||||
function(t)
|
||||
if not t.selected then
|
||||
local focus_timer = timer({ timeout = 0.05 })
|
||||
focus_timer:connect_signal(
|
||||
"timeout",
|
||||
|
Reference in New Issue
Block a user