clickable tabs
This commit is contained in:
parent
86d8127d9a
commit
957699d0b5
|
@ -36,7 +36,7 @@ We now have tabs for tiled clients :)
|
||||||
### Next?
|
### Next?
|
||||||
|
|
||||||
- [ ] Better keybindings (possibly emacs style)
|
- [ ] Better keybindings (possibly emacs style)
|
||||||
- [ ] Clickable tabs
|
- [X] Clickable tabs
|
||||||
- [ ] Add binding for relocating the entire region
|
- [ ] Add binding for relocating the entire region
|
||||||
- [ ] Deck spread (send focused client to a direction without moving focus)
|
- [ ] Deck spread (send focused client to a direction without moving focus)
|
||||||
- [ ] Visual teleport (overlay with region numbers to choose from)
|
- [ ] Visual teleport (overlay with region numbers to choose from)
|
||||||
|
|
13
methods.lua
13
methods.lua
|
@ -765,10 +765,12 @@ function draw_tabbar(region_ix, s)
|
||||||
global_widget_table[cl.window] = {}
|
global_widget_table[cl.window] = {}
|
||||||
|
|
||||||
for cc_ix, cc in ipairs(tablist) do
|
for cc_ix, cc in ipairs(tablist) do
|
||||||
local buttons = gears.table.join(awful.button({}, 1, function() end))
|
local buttons = gears.table.join(awful.button({}, 1, function(_)
|
||||||
-- wid_temp
|
gears.timer.delayed_call(function(p)
|
||||||
|
client.emit_signal("riseup", p)
|
||||||
|
end, cc)
|
||||||
|
end))
|
||||||
global_widget_table[cl.window][cc_ix] = tabs.create(cc, (cc == cl), buttons, cl_ix)
|
global_widget_table[cl.window][cc_ix] = tabs.create(cc, (cc == cl), buttons, cl_ix)
|
||||||
|
|
||||||
flexlist:add(global_widget_table[cl.window][cc_ix])
|
flexlist:add(global_widget_table[cl.window][cc_ix])
|
||||||
flexlist.max_widget_size = 120
|
flexlist.max_widget_size = 120
|
||||||
end
|
end
|
||||||
|
@ -983,8 +985,13 @@ end -- todo: need to update the other clients in the region here as well
|
||||||
-- client.connect_signal("property::name", name_signal)
|
-- client.connect_signal("property::name", name_signal)
|
||||||
|
|
||||||
|
|
||||||
|
local function riseup_signal(c)
|
||||||
|
client.focus = c; c:raise()
|
||||||
|
-- c:emit_signal("request::activate", "mouse_enter",{raise = true})
|
||||||
|
end
|
||||||
--------------------------------------------------------------- signals -- ;
|
--------------------------------------------------------------- signals -- ;
|
||||||
|
|
||||||
|
client.connect_signal("riseup", riseup_signal)
|
||||||
client.connect_signal("focus", focus_signal)
|
client.connect_signal("focus", focus_signal)
|
||||||
client.connect_signal("unfocus", unfocus_signal)
|
client.connect_signal("unfocus", unfocus_signal)
|
||||||
client.connect_signal("property::minimized", minimized_signal)
|
client.connect_signal("property::minimized", minimized_signal)
|
||||||
|
|
Loading…
Reference in New Issue