util.quake: revert previous commit; closes #415
This commit is contained in:
parent
ca0bac403f
commit
6c3a211991
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local client = client
|
local capi = { client = client }
|
||||||
local math = math
|
local math = math
|
||||||
local string = string
|
local string = string
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
|
@ -77,7 +77,7 @@ function quake:display()
|
||||||
client:raise()
|
client:raise()
|
||||||
self.last_tag = self.screen.selected_tag
|
self.last_tag = self.screen.selected_tag
|
||||||
client:tags({self.screen.selected_tag})
|
client:tags({self.screen.selected_tag})
|
||||||
client.focus = client
|
capi.client.focus = client
|
||||||
else
|
else
|
||||||
client.hidden = true
|
client.hidden = true
|
||||||
local ctags = client:tags()
|
local ctags = client:tags()
|
||||||
|
@ -137,12 +137,12 @@ function quake:new(config)
|
||||||
|
|
||||||
local dropdown = setmetatable(conf, { __index = quake })
|
local dropdown = setmetatable(conf, { __index = quake })
|
||||||
|
|
||||||
client.connect_signal("manage", function(c)
|
capi.client.connect_signal("manage", function(c)
|
||||||
if c.instance == dropdown.name and c.screen == dropdown.screen then
|
if c.instance == dropdown.name and c.screen == dropdown.screen then
|
||||||
dropdown:display()
|
dropdown:display()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
client.connect_signal("unmanage", function(c)
|
capi.client.connect_signal("unmanage", function(c)
|
||||||
if c.instance == dropdown.name and c.screen == dropdown.screen then
|
if c.instance == dropdown.name and c.screen == dropdown.screen then
|
||||||
dropdown.visible = false
|
dropdown.visible = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue