ewmh.tag: Fix the transient_for clients without parent client tags (#1610)

ewmh.tag: Fix the transient_for clients without parent client tags

Fix #1594
This commit is contained in:
Emmanuel Lepage Vallée 2017-03-01 14:11:38 -05:00 committed by GitHub
parent 04b73db722
commit ef668bc028

View file

@ -204,7 +204,8 @@ function ewmh.tag(c, t, hints) --luacheck: no unused
if c.transient_for and not (hints and hints.reason == "screen") then
c.screen = c.transient_for.screen
if not c.sticky then
c:tags(c.transient_for:tags())
local tags = c.transient_for:tags()
c:tags(#tags > 0 and tags or c.transient_for.screen.selected_tags)
end
else
c:to_selected_tags()