Skip to content

Commit

Permalink
umu_run: compute the symmetric difference
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jul 20, 2024
1 parent ffcd610 commit a5740fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,9 @@ def monitor_windows(
if not current_window_list:
continue

if window_client_set.difference(current_window_list):
if diff := window_client_set.symmetric_difference(current_window_list):
log.debug("New windows detected")
set_steam_game_property(
d_secondary, current_window_list, steam_assigned_layer_id
)
set_steam_game_property(d_secondary, diff, steam_assigned_layer_id)
d_secondary.flush()


Expand Down

0 comments on commit a5740fe

Please sign in to comment.