mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 20:40:15 +02:00
Revert "widgets: don't do anything when clicking on tasklist"
This reverts commit dd27658d13
. OK, if I
minimize something, I need it.
This commit is contained in:
parent
f8e519691c
commit
ffea7be396
1 changed files with 15 additions and 1 deletions
|
@ -229,6 +229,20 @@ local layoutbox = {}
|
|||
|
||||
local taglist = {}
|
||||
local tasklist = {}
|
||||
tasklist.buttons = awful.util.table.join(
|
||||
awful.button({ }, 1, function (c)
|
||||
if c == client.focus then
|
||||
c.minimized = true
|
||||
else
|
||||
if not c:isvisible() then
|
||||
awful.tag.viewonly(c:tags()[1])
|
||||
end
|
||||
-- This will also un-minimize
|
||||
-- the client, if needed
|
||||
client.focus = c
|
||||
c:raise()
|
||||
end
|
||||
end))
|
||||
|
||||
for s = 1, screen.count() do
|
||||
promptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
|
||||
|
@ -237,7 +251,7 @@ for s = 1, screen.count() do
|
|||
function(c)
|
||||
local title, color, _, icon = awful.widget.tasklist.label.currenttags(c, s)
|
||||
return title, color, nil, icon
|
||||
end)
|
||||
end, tasklist.buttons)
|
||||
|
||||
-- Create the taglist
|
||||
taglist[s] = awful.widget.taglist.new(s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue