From 4a92816897ae4b343535c4dc3964da111f1d986c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 29 Jul 2012 16:59:43 +0200 Subject: [PATCH] quake: use instance name instead of icon name It seems that xterm does not keep the appropriate icon name. The instance name seems to work for both xterm and rxvt. --- lib/quake.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/quake.lua b/lib/quake.lua index 42faaf9..fdc7ec1 100644 --- a/lib/quake.lua +++ b/lib/quake.lua @@ -46,7 +46,7 @@ function QuakeConsole:display() local i = 0 for c in awful.client.cycle(function (c) -- c.name may be changed! - return c.icon_name == self.name + return c.instance == self.name end, nil, self.screen) do i = i + 1 @@ -136,13 +136,13 @@ function QuakeConsole:new(config) local console = setmetatable(config, { __index = QuakeConsole }) capi.client.add_signal("manage", function(c) - if c.icon_name == console.name and c.screen == console.screen then + if c.instance == console.name and c.screen == console.screen then console:display() end end) capi.client.add_signal("unmanage", function(c) - if c.icon_name == console.name and c.screen == console.screen then + if c.instance == console.name and c.screen == console.screen then console.visible = false end end)