X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/d070b7bd356a3e797adf17443269904e379387ca..47ee7213393efb3fc43587fd2bbd89a5b111b5ed:/util/quake.lua diff --git a/util/quake.lua b/util/quake.lua index 38b9917..e323732 100644 --- a/util/quake.lua +++ b/util/quake.lua @@ -1,7 +1,7 @@ --[[ Licensed under GNU General Public License v2 - * (c) 2016, Luke Bonham + * (c) 2016, Luca CPZ * (c) 2015, unknown --]] @@ -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()