quake: simplify logic about multiple quake consoles

We shouldn't need that anymore.
This commit is contained in:
Vincent Bernat 2019-10-12 11:43:36 +02:00
parent 119b69b111
commit ff62552a43

View file

@ -33,19 +33,9 @@ function QuakeConsole:display()
-- c.name may be changed! -- c.name may be changed!
return (c.instance == self.name or c.role == self.name) return (c.instance == self.name or c.role == self.name)
end) do end) do
i = i + 1
if i == 1 then
client = c client = c
client:tags({}) client:tags({})
else break
-- Additional matching clients, let's remove the sticky bit
-- which may persist between awesome restarts. We don't close
-- them as they may be valuable. They will just turn into a
-- classic terminal.
c.sticky = false
c.ontop = false
c.above = false
end
end end
if not client and not self.visible then if not client and not self.visible then