awful.tag: fix withcurrent screen choice (FS#616)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b94a32c281
commit
c0cb4203a9
|
@ -315,8 +315,9 @@ function withcurrent(c, startup)
|
||||||
c.screen = c.transient_for.screen
|
c.screen = c.transient_for.screen
|
||||||
c:tags(c.transient_for:tags())
|
c:tags(c.transient_for:tags())
|
||||||
end
|
end
|
||||||
|
c.screen = capi.mouse.screen
|
||||||
if #c:tags() == 0 then
|
if #c:tags() == 0 then
|
||||||
c:tags(selectedlist(capi.mouse.screen))
|
c:tags(selectedlist(c.screen))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -347,8 +348,8 @@ function attached_add_signal(screen, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register standards signals
|
-- Register standards signals
|
||||||
capi.client.add_signal("manage", function(c)
|
capi.client.add_signal("manage", function(c, startup)
|
||||||
withcurrent(c)
|
withcurrent(c, startup)
|
||||||
c:add_signal("property::screen", withcurrent)
|
c:add_signal("property::screen", withcurrent)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue