aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-10-03 10:28:50 +0200
committerRobert Tari <robert@tari.in>2023-10-03 10:28:50 +0200
commita914e22d4aa9be263b7af1866a593a74204f035b (patch)
treeb4aee1666ce9224ed4e50a1e12da3a5980c1c543
parent1328cb1d6fe87b2efb5f3e700ae05238eb5b8fec (diff)
downloadarctica-greeter-a914e22d4aa9be263b7af1866a593a74204f035b.tar.gz
arctica-greeter-a914e22d4aa9be263b7af1866a593a74204f035b.tar.bz2
arctica-greeter-a914e22d4aa9be263b7af1866a593a74204f035b.zip
src/arctica-greeter.vala: Initialise OnBoard and Orca after the greeter is presented
-rw-r--r--src/arctica-greeter.vala15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 111eb9d..16b8a16 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -142,10 +142,6 @@ public class ArcticaGreeter : Object
{
this.pServer = new DBusServer (pConnection, this);
pConnection.register_object ("/org/ArcticaProject/ArcticaGreeter", this.pServer);
-
- /* Initialize OSK and screen reader as configured in gsettings. */
- this.pServer.ToggleOrca (AGSettings.get_boolean(AGSettings.KEY_SCREEN_READER));
- this.pServer.ToggleOnBoard (AGSettings.get_boolean(AGSettings.KEY_ONSCREEN_KEYBOARD));
}
catch (IOError pError)
{
@@ -487,6 +483,17 @@ public class ArcticaGreeter : Object
main_window.setup_window ();
main_window.show ();
main_window.get_window ().focus (Gdk.CURRENT_TIME);
+
+ try
+ {
+ /* Initialize OSK and screen reader as configured in gsettings. */
+ this.pServer.ToggleOrca (AGSettings.get_boolean(AGSettings.KEY_SCREEN_READER));
+ this.pServer.ToggleOnBoard (AGSettings.get_boolean(AGSettings.KEY_ONSCREEN_KEYBOARD));
+ }
+ catch (Error pError)
+ {
+ error ("%s\n", pError.message);
+ }
}
public bool is_authenticated ()