Skip to content

Commit

Permalink
Fix skip-empty & skip-occupied options with all-outputs enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed May 12, 2024
1 parent c322b52 commit ec8c061
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions riverwm_utils/riverwm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,15 @@ def cycle_focused_tags():
prepare_display(display)

used_tags = (1 << args.n_tags) - 1

tags = SEAT.focused_output.focused_tags & used_tags
view_tags = SEAT.focused_output.view_tags
occupied_tags = get_occupied_tags(view_tags) & used_tags
if args.all_outputs and len(OUTPUTS) > 1:
occupied_tags = 0
for output in OUTPUTS:
occupied_tags |= get_occupied_tags(output.view_tags) & used_tags
else:
occupied_tags = get_occupied_tags(SEAT.focused_output.view_tags) & used_tags

if args.debug:
print(f'occ 0b{occupied_tags:032b}')

Expand Down

0 comments on commit ec8c061

Please sign in to comment.