feature/1-focus-greeter-when-taking-control #2

Merged
hygienic-books merged 2 commits from feature/1-focus-greeter-when-taking-control into master 2022-03-07 23:40:52 +00:00
Showing only changes of commit 66c8549032 - Show all commits

View File

@ -85,7 +85,7 @@ def sddm_greeter_window_ids() -> list:
return []
def has_sddm_focus() -> bool:
def sddm_change_focus_if_two_windows() -> bool:
dm_windows = sddm_greeter_window_ids()
if not dm_windows:
return False
@ -200,7 +200,7 @@ cec.add_callback(keypress_handler, cec.EVENT_KEYPRESS)
cec.add_callback(log_handler, cec.EVENT_LOG)
log.debug(f"Event handlers active")
log.info(f"Open for business on adapter '{use_adapter}'!")
has_sddm_focus()
sddm_change_focus_if_two_windows()
while True: