unmanage logic updated
This commit is contained in:
parent
f02369507f
commit
08a7d68a88
7
init.lua
7
init.lua
@ -46,9 +46,6 @@ client.connect_signal("focus", function(c)
|
|||||||
if should_stay then return false end
|
if should_stay then return false end
|
||||||
--+ exclusions
|
--+ exclusions
|
||||||
|
|
||||||
-- if compare_coords(focused_client) then return false end
|
|
||||||
--+ avoid tabs
|
|
||||||
|
|
||||||
if not client_under_mouse then
|
if not client_under_mouse then
|
||||||
micky()
|
micky()
|
||||||
return false
|
return false
|
||||||
@ -68,10 +65,12 @@ client.connect_signal("focus", function(c)
|
|||||||
--> client without the callback.
|
--> client without the callback.
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
client.connect_signal("unmanage", function(c)
|
client.connect_signal("unmanage", function(c)
|
||||||
local client_under_mouse = mouse.current_client
|
local client_under_mouse = mouse.current_client
|
||||||
|
|
||||||
|
local killed_client = c
|
||||||
|
--+ client the focus is going towards
|
||||||
|
|
||||||
if not client_under_mouse then
|
if not client_under_mouse then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user