mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-22 18:03:28 +02:00
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.
This commit is contained in:
parent
36cea762bd
commit
4a92816897
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ function QuakeConsole:display()
|
||||||
local i = 0
|
local i = 0
|
||||||
for c in awful.client.cycle(function (c)
|
for c in awful.client.cycle(function (c)
|
||||||
-- c.name may be changed!
|
-- c.name may be changed!
|
||||||
return c.icon_name == self.name
|
return c.instance == self.name
|
||||||
end,
|
end,
|
||||||
nil, self.screen) do
|
nil, self.screen) do
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
@ -136,13 +136,13 @@ function QuakeConsole:new(config)
|
||||||
local console = setmetatable(config, { __index = QuakeConsole })
|
local console = setmetatable(config, { __index = QuakeConsole })
|
||||||
capi.client.add_signal("manage",
|
capi.client.add_signal("manage",
|
||||||
function(c)
|
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()
|
console:display()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
capi.client.add_signal("unmanage",
|
capi.client.add_signal("unmanage",
|
||||||
function(c)
|
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
|
console.visible = false
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue