Change function name to make its purpose clearer
This commit is contained in:
parent
b197e576fa
commit
66c8549032
4
main.py
4
main.py
@ -85,7 +85,7 @@ def sddm_greeter_window_ids() -> list:
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
def has_sddm_focus() -> bool:
|
def sddm_change_focus_if_two_windows() -> bool:
|
||||||
dm_windows = sddm_greeter_window_ids()
|
dm_windows = sddm_greeter_window_ids()
|
||||||
if not dm_windows:
|
if not dm_windows:
|
||||||
return False
|
return False
|
||||||
@ -200,7 +200,7 @@ cec.add_callback(keypress_handler, cec.EVENT_KEYPRESS)
|
|||||||
cec.add_callback(log_handler, cec.EVENT_LOG)
|
cec.add_callback(log_handler, cec.EVENT_LOG)
|
||||||
log.debug(f"Event handlers active")
|
log.debug(f"Event handlers active")
|
||||||
log.info(f"Open for business on adapter '{use_adapter}'!")
|
log.info(f"Open for business on adapter '{use_adapter}'!")
|
||||||
has_sddm_focus()
|
sddm_change_focus_if_two_windows()
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user