Skip to content

[BUG]: Alt+Tab/focus floating window spazzes out #53

@helmesjo

Description

@helmesjo

Describe the bug
Running latest master (whkd 0.2.6) I noticed that when I have a floating window (komorebi) and Alt+Tab to it something reposition the pointer repeatedly to the center of the screen/that window. Since this appears to be event related (and whkd was the last thing I changed, installing from master), I suspect the problem to lie in here and from the looks of it I would guess the problem is that it keeps re-focusing the same window over and over.

To Reproduce

  1. Install latest master (from time of writing).
  2. Run komorebic start --whkd --bar (latter probably not important).
  3. Open a new window (should be tiled to fullscreen).
  4. Toggle to floating (hotkey or komorebic toggle-float).
  5. Alt+Tab (so just "re-select" the same window).
  6. It should now spaz out.
    • Toggle float again (only possible with hotkey at this point) and it stops spazzing.

Expected behavior
Sanity.

Screenshots and Videos
Image

Operating System

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22621 N/A Build 22621

Additional context
alt + t: komorebi toggle-float

komorebi --version
komorebi 0.1.32
tag:v0.1.32
commit_hash:4b9d8114
build_time:2025-01-01 19:35:55 +00:00
build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc

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