tests: Fix the layoutlist popup example.
`gears.table.cycle_value` returns 2 values. That accidentally passed the second one to `awful.layout.set`, which didn't like it at all.
This commit is contained in:
parent
213bfbc9bd
commit
2a65d8ade1
|
@ -59,16 +59,18 @@ local modkey = "mod4" --DOC_HIDE
|
||||||
start_callback = function() layout_popup.visible = true end,
|
start_callback = function() layout_popup.visible = true end,
|
||||||
stop_callback = function() layout_popup.visible = false end,
|
stop_callback = function() layout_popup.visible = false end,
|
||||||
export_keybindings = true,
|
export_keybindings = true,
|
||||||
release_event = "release",
|
stop_event = "release",
|
||||||
stop_key = {"Escape", "Super_L", "Super_R"},
|
stop_key = {"Escape", "Super_L", "Super_R"},
|
||||||
keybindings = {
|
keybindings = {
|
||||||
{{ modkey } , " " , function()
|
{{ modkey } , " " , function()
|
||||||
awful.layout.set(gears.table.cycle_value(ll.layouts, ll.current_layout, 1))
|
awful.layout.set((gears.table.cycle_value(ll.layouts, ll.current_layout, 1)))
|
||||||
end},
|
end},
|
||||||
{{ modkey, "Shift" } , " " , function()
|
{{ modkey, "Shift" } , " " , function()
|
||||||
awful.layout.set(gears.table.cycle_value(ll.layouts, ll.current_layout, -1), nil)
|
awful.layout.set((gears.table.cycle_value(ll.layouts, ll.current_layout, -1)), nil)
|
||||||
end},
|
end},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
layout_popup.visible = true --DOC_HIDE
|
||||||
|
|
||||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue