From ccaa8154bef56d5e08ae52f7dbd3e8ee1fc52250 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 4 Aug 2015 21:29:29 +0200 Subject: [PATCH] tests: use root.fake_input instead of xdotool Ref: https://github.com/awesomeWM/awesome/issues/328 --- tests/test-urgent.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test-urgent.lua b/tests/test-urgent.lua index c33f01c0..47c3497c 100644 --- a/tests/test-urgent.lua +++ b/tests/test-urgent.lua @@ -46,7 +46,10 @@ local steps = { function(count) if count == 1 then -- Setup: switch to tag. - os.execute('xdotool key super+2') + root.fake_input("key_press", "Super_L") + root.fake_input("key_press", "2") + root.fake_input("key_release", "2") + root.fake_input("key_release", "Super_L") elseif awful.tag.selectedlist()[1] == tags[1][2] then assert(#client.get() == 1)