From a914e22d4aa9be263b7af1866a593a74204f035b Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 3 Oct 2023 10:28:50 +0200 Subject: src/arctica-greeter.vala: Initialise OnBoard and Orca after the greeter is presented --- src/arctica-greeter.vala | 15 +++++++++++---- 1 file 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 () -- cgit v1.2.3