Skip to content

Commit

Permalink
umu_run: update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jul 20, 2024
1 parent a2217ed commit 0f50dff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,16 +603,20 @@ def monitor_windows(

while True:
# Check if the window sequence has changed
current_window_list: set[str] = set(get_window_client_ids(d_secondary))
current_window_list: list[str] = get_window_client_ids(d_secondary)

if not current_window_list:
continue

if diff := window_client_set.symmetric_difference(current_window_list):
if diff := window_client_set.symmetric_difference(
set(current_window_list)
):
log.debug("New windows detected")
log.debug("current_windows_list: %s", current_window_list)
log.debug("window_client_set: %s", window_client_set)
log.debug("difference: %s", diff)
window_client_set |= diff
log.debug("updated window_client_set: %s", window_client_set)
set_steam_game_property(d_secondary, diff, steam_assigned_layer_id)
d_secondary.flush()

Expand Down

0 comments on commit 0f50dff

Please sign in to comment.