From 5a720b7fa71cc67abdd0466ce1b34ef0012a9432 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 1 Mar 2023 13:18:51 +0100 Subject: arctica-greeter's test mode: No keyboard tweaks in test mode. --- src/arctica-greeter.vala | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index 8013b8a..309503b 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -915,13 +915,15 @@ public class ArcticaGreeter : Object } } - /* Set the keyboard layout */ - set_keyboard_layout (); - - /* Set the numlock state */ - if (AGSettings.get_boolean (AGSettings.KEY_ACTIVATE_NUMLOCK)) { - debug ("Activating numlock"); - activate_numlock (); + if (!do_test_mode) { + /* Set the keyboard layout */ + set_keyboard_layout (); + + /* Set the numlock state */ + if (AGSettings.get_boolean (AGSettings.KEY_ACTIVATE_NUMLOCK)) { + debug ("Activating numlock"); + activate_numlock (); + } } Pid atspi_pid = 0; -- cgit v1.2.3