feature/1-focus-greeter-when-taking-control #2
4
main.py
4
main.py
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user