Check factory when window is unmanaged
This ensures the factory is properly cleaned up.
This commit is contained in:
parent
0f9dc85b09
commit
da2caa7315
7
init.lua
7
init.lua
|
@ -35,6 +35,12 @@ awful.rules.add_rule_source("launch",
|
||||||
table.insert(callbacks, data.callback)
|
table.insert(callbacks, data.callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if data.factory then
|
||||||
|
c:connect_signal("request::unmanage", function ()
|
||||||
|
awful.spawn("wm-launchd -check " .. data.factory)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
shared.pending[id] = nil
|
shared.pending[id] = nil
|
||||||
launch.widget.update_widgets()
|
launch.widget.update_widgets()
|
||||||
end)
|
end)
|
||||||
|
@ -130,6 +136,7 @@ local function spawn(cmd, args)
|
||||||
local launch_cmd = "wm-launch"
|
local launch_cmd = "wm-launch"
|
||||||
|
|
||||||
if args.factory then
|
if args.factory then
|
||||||
|
data.factory = args.factory
|
||||||
launch_cmd = launch_cmd .. " -f " .. args.factory
|
launch_cmd = launch_cmd .. " -f " .. args.factory
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue