Skip to content

Not detecting mouse release after alt-tab on windows #4418

@nickd-airo

Description

@nickd-airo

Environment

App: egui_demo_app (+ other egui-based apps)
OS: Windows 11
Git: 0bc59f5

Describe the bug

  1. Open the 'input test' demo.
  2. Click and hold Sense::drag
  3. Move cursor off egui window
  4. Alt-tab to a different window
  5. Release mouse
  6. Alt-tab back to egui window
  7. Move cursor around
  8. Mouse is erroneously considered pressed, even though it was released
  9. Click mouse on egui window to fix state

Expected

Mouse should be detected as released once it is released. Other native windows apps seem to do this correctly, e.g. ms paint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions