Do not use undefined variable modkey (thanks @EllatharTheHalfling)

Fixes https://github.com/elenapan/dotfiles/issues/124
This commit is contained in:
elenapan 2020-11-11 20:45:13 +02:00
parent b7786196da
commit e952184146

View file

@ -834,7 +834,7 @@ keys.clientbuttons = gears.table.join(
-- Mouse buttons on the tasklist
-- Use 'Any' modifier so that the same buttons can be used in the floating
-- tasklist displayed by the window switcher while the modkey is pressed
-- tasklist displayed by the window switcher while the superkey is pressed
keys.tasklist_buttons = gears.table.join(
awful.button({ 'Any' }, 1,
function (c)
@ -878,7 +878,7 @@ keys.taglist_buttons = gears.table.join(
-- t:view_only()
helpers.tag_back_and_forth(t.index)
end),
awful.button({ modkey }, 1, function(t)
awful.button({ superkey }, 1, function(t)
if client.focus then
client.focus:move_to_tag(t)
end
@ -889,7 +889,7 @@ keys.taglist_buttons = gears.table.join(
client.focus:move_to_tag(t)
end
end),
awful.button({ modkey }, 3, function(t)
awful.button({ superkey }, 3, function(t)
if client.focus then
client.focus:toggle_tag(t)
end