Skip to content

[BUG] WindowManager focus_next() Reverse Wrapping #161

@lfgberg

Description

@lfgberg

Describe the bug
When using focus_next() on a WindowManager with a negative step (ex. step=-1), a crash occurs instead of wrapping around to the next window as seen with a positive step

To Reproduce
Steps to reproduce the behavior:

  1. Instantiate a WindowManager
  2. Use .focus_next(step=-1) multiple times
  3. Observe the crash.

Expected behavior
The WM should wrap and have the bottom window focused instead of crashing.

Possible solution
Opening a PR rn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions