LiveGTech / gShell

Interactive graphical desktop environment for LiveG OS.
https://liveg.tech/os
Other
15 stars 3 forks source link

Ensure that lock screen is focused when returning from sleep #38

Open James-Livesey opened 6 months ago

James-Livesey commented 6 months ago

If the power button was pressed while focused on a webview or Xorg window, the lock screen is not focused when the device is woken up from sleep (instead, the focus remains in the webview or Xorg window). This prevents the user from being able to press the Space key to unlock their device unless they first click on the lock screen to focus it.

We ideally need a function to allow us to focus gShell's main renderer that can be used in future fixes. After calling this function from wakeup, the active screen (not always the lock screen, for example when OOBS is in progress) itself should then be focused.