X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/af3427c7dfcf991c56a099ac1450e54db867ae51..53ebca2867c5d9c9ab7c5d3f37ccc91784322cd7:/util/quake.lua?ds=sidebyside 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()