From a0d4c2fc65e86ee3c6ff11daa2dd3537dd76ef5e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 6 Aug 2020 18:03:08 -0700 Subject: [PATCH] Add a keypress to the 'keepalive' loop in desktop_notifications Just repositioning the mouse appears not to be enough to prevent the sesssion going idle any more, since the 20200731.n.0 compose. Not sure what causes this, probably the kernel. Adding a space keypress seems to help in both KDE and GNOME. Signed-off-by: Adam Williamson --- tests/desktop_notifications.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/desktop_notifications.pm b/tests/desktop_notifications.pm index 42754aab..28426a6c 100644 --- a/tests/desktop_notifications.pm +++ b/tests/desktop_notifications.pm @@ -74,6 +74,7 @@ sub run { for my $n (1..16) { sleep 30; mouse_set 10, 10; + send_key "spc"; mouse_hide; } if ($desktop eq 'gnome') {