aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-03-01 13:18:51 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-03-01 13:40:38 +0100
commit5a720b7fa71cc67abdd0466ce1b34ef0012a9432 (patch)
tree21a26438342a905eeaab8a166c50ec8a773844d6 /src/arctica-greeter.vala
parentd758529711dde5caf7d90b5a1bdb5cc1dd15e416 (diff)
downloadarctica-greeter-5a720b7fa71cc67abdd0466ce1b34ef0012a9432.tar.gz
arctica-greeter-5a720b7fa71cc67abdd0466ce1b34ef0012a9432.tar.bz2
arctica-greeter-5a720b7fa71cc67abdd0466ce1b34ef0012a9432.zip
arctica-greeter's test mode: No keyboard tweaks in test mode.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala16
1 files 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;