From ff62552a430ee4f5cd188d89ec6fb45628f5ce57 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 12 Oct 2019 11:43:36 +0200 Subject: [PATCH] quake: simplify logic about multiple quake consoles We shouldn't need that anymore. --- lib/quake.lua | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/lib/quake.lua b/lib/quake.lua index 1522294..090d7e3 100644 --- a/lib/quake.lua +++ b/lib/quake.lua @@ -33,19 +33,9 @@ function QuakeConsole:display() -- c.name may be changed! return (c.instance == self.name or c.role == self.name) end) do - i = i + 1 - if i == 1 then - client = c - client:tags({}) - else - -- 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 + client = c + client:tags({}) + break end if not client and not self.visible then