From: Kyra Zimmer Date: Thu, 22 Feb 2018 11:14:00 +0000 (+0100) Subject: util.quake: check if client exists when moving it to another tag X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/e81f46950b39319aab9b41cce38e11751a06dba1?ds=inline;hp=--cc util.quake: check if client exists when moving it to another tag --- e81f46950b39319aab9b41cce38e11751a06dba1 diff --git a/util/quake.lua b/util/quake.lua index 6271fcd..e323732 100644 --- a/util/quake.lua +++ b/util/quake.lua @@ -158,7 +158,10 @@ function quake:toggle() if self.followtag then self.screen = awful.screen.focused() end local current_tag = self.screen.selected_tag if current_tag and self.last_tag ~= current_tag and self.visible then - self:display():move_to_tag(current_tag) + local c=self:display() + if c then + c:move_to_tag(current_tag) + end else self.visible = not self.visible self:display()