awesome/tests
Uli Schlachter 9f3a6757e9 Asynchronously update the keyboard state
When the keyboard layout is modified via xmodmap, each single "change"
(line of input to xmodmap) causes an "the keyboard configuration
changed"-event to be sent. Awesome reacted to each of these events by
reloading the keyboard layout. Thus, awesome reloaded the keyboard
layout a lot and appeared to freeze.

Fix this by asynchronously update the keyboard state: When such an event
comes in, instead of reloading things immediately, we set a flag which
makes us update the state at the end of the main loop iteration. This
means that many events still cause only a single (or at least few)
re-quering of the layout. Thus, a lot of time is saved.

This commit removes the argument to the (undocumented!) signal
xkb::group_changed. Previously, the argument was the active group
number. Since this argument was unused and I'm lazy, I just removed it.
The alternative would be that it might be visible to Lua that some "the
active group changed"-events are dropped.

Fixes: https://github.com/awesomeWM/awesome/issues/1494
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-03-28 15:21:01 +02:00
..
examples Move filesystem functions out of awful.util into new gears.filesystem 2017-03-15 13:46:33 -05:00
_client.lua tests/_client.lua: Improve error with Gtk 2 (#1506) 2017-02-02 22:30:04 +01:00
_multi_screen.lua tests: Break wibox for multiscreen tests (on purpose) 2017-02-07 11:37:07 -05:00
_runner.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
_wibox_helper.lua textclock: Move to wibox.widget 2016-05-30 17:51:19 -04:00
run.sh tests: move coverage setup into tests/run.sh 2017-01-08 20:34:13 +01:00
test-awesomerc.lua test(awful: hotkeys_popup): add a minimal test 2017-02-05 21:32:43 +01:00
test-awful-client.lua tests: Break wibox for multiscreen tests (on purpose) 2017-02-07 11:37:07 -05:00
test-awful-layout.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
test-awful-rules.lua Fix code using awful.util.round 2017-03-06 17:11:05 +01:00
test-awful-screen.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-awful-tag.lua tests: Break wibox for multiscreen tests (on purpose) 2017-02-07 11:37:07 -05:00
test-awful-widget-button.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
test-awful-widget-only_on_screen.lua Add a only_on_screen container widget 2017-03-03 13:25:28 +01:00
test-awful-widget-watch.lua Make tests more reliable on "early errors" 2016-03-06 10:20:45 +01:00
test-benchmark.lua Fix Luacheck 0.19.0 release Travis breaks 2017-03-03 16:41:12 -06:00
test-client-swap.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-current-desktop.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
test-dbus-error.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-drawable-bgimage.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-focus.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-geometry.lua test-geometry: Wait for c:kill() to be done 2017-01-02 19:34:41 +01:00
test-keyboard-layout-changes.lua Asynchronously update the keyboard state 2017-03-28 15:21:01 +02:00
test-leak-client.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
test-leaks.lua Fix memory leak in the default config on screen removal 2016-09-30 22:46:51 +02:00
test-maximize.lua ewmh: Use the request:: API in the border_width / wa callback 2017-02-07 11:13:15 -05:00
test-miss-handlers.lua Add missing modelines to tests/*.lua 2016-12-31 14:05:51 +01:00
test-resize.lua client: Allow clients to have shapes 2017-02-03 17:48:28 -05:00
test-screen-changes.lua Add a test for screen :swap() 2016-10-29 09:36:31 +02:00
test-signal.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-spawn-snid.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-spawn.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-struts.lua tests: Validate wibar geometry in the struts test 2017-02-13 22:41:25 -05:00
test-tag-gap-single-client.lua Fix awful.tag.object.get_gap_single_client (#1190) 2016-10-26 01:43:45 +02:00
test-tooltip.lua Fix test-tooltip.lua: Run the event loop 2016-09-30 09:36:47 +02:00
test-urgent.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-use-after-gc.lua Improve behaviour of GC'd objects 2016-09-24 14:37:07 +02:00
test-wallpaper.lua tests: fix indenting/style (#1303) 2016-12-27 21:39:08 +01:00
test-wibox-shape.lua Add a kind of test for wibox shape support 2016-12-26 13:28:34 +01:00