From 5701d1a5a599548528928addf680ef3159a2bdb6 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 4 Apr 2024 11:18:25 -0700 Subject: [PATCH] Try and robustify menu_launch_type a bit The mistypes on KDE are bugging me. Let's see if this - mainly the wait_screen_change, the other just seems like a logical tweak - helps at all. Signed-off-by: Adam Williamson --- lib/utils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index f44eff4f..9ae31f11 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -1356,12 +1356,12 @@ sub menu_launch_type { diag("Moving the mouse away from the launcher."); mouse_set(1, 1); } - send_key 'super'; + wait_screen_change { send_key 'super'; }; # srsly KDE y u so slo wait_still_screen 3; type_very_safely $app; # Wait for KDE to place focus correctly. - sleep 2; + wait_still_screen 2; send_key 'ret'; }