From ac81a8df1f7a7cd83eff949597d82ae9c99a1903 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 25 Apr 2016 21:12:10 +0200 Subject: [PATCH] c.to_selected_tags(): Handle screenless clients Signed-off-by: Uli Schlachter --- lib/awful/client.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index 7cbd82f3..60fd9b01 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -446,12 +446,14 @@ function client.object.to_selected_tags(self) end end - if #tags == 0 then - tags = self.screen.selected_tags - end + if self.screen then + if #tags == 0 then + tags = self.screen.selected_tags + end - if #tags == 0 then - tags = self.screen.tags + if #tags == 0 then + tags = self.screen.tags + end end if #tags ~= 0 then