From ef668bc028d648b9283fe05608d757fa2239baba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Lepage=20Vall=C3=A9e?= Date: Wed, 1 Mar 2017 14:11:38 -0500 Subject: [PATCH] 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 --- lib/awful/ewmh.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index 817a69bd..cde67f76 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -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()