From a53ff7418ecb780dd10998ebabe6541f0f20b6e6 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 1 Dec 2019 19:25:10 -0500 Subject: [PATCH] tests: Add more global awful.key in test-awesomerc. This forces the hotkey popup to have pages. --- tests/test-awesomerc.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/test-awesomerc.lua b/tests/test-awesomerc.lua index 1d7ba4f3..07326e52 100644 --- a/tests/test-awesomerc.lua +++ b/tests/test-awesomerc.lua @@ -228,6 +228,25 @@ local steps = { return true end, + -- Add more keybindings for make sure the popup has many pages. + function() + for j=1, 10 do + for i=1, 200 do + awful.keyboard.append_global_keybinding( + awful.key { + key = "#"..(300+i), + modifiers = {}, + on_press = function() end, + description = "Fake "..i, + group = "Fake"..j, + } + ) + end + end + + return true + end, + -- Hotkeys popup should be displayed and hidden function(count) local s = awful.screen.focused()