Skip to content

Sending mouse event to navigation bar buttons causes program to hang until program is refocused #1269

@ahoyaharr

Description

@ahoyaharr

Is there an existing issue for this?

  • I searched the existing issues and did not find anything similar.

Current Behavior

When sending a mouse event to any of the buttons on the navigation bar, the program will hang until the program is refocused (either by alt-tabbing or clicking back into the program).

While the program is hanging, it continues to buffer controller inputs, the inputs are rapidly played back when the program recovers.

Expected Behavior

The input on the navigation bar should be executed (or possibly it should fail silently).

Steps To Reproduce

  1. Configure controller to send mouse button inputs
  2. Attempt to send input to minimize, maximize, or close buttons on navigation bar
  3. The input will be consumed and the program will hang until it is refocused
Image

Environment

Program Version 3.5.1
Compiled from packaging: GitHub Portable Windows Release
Built Against SDL 2.30.6
Running With SDL 2.30.6
Using Qt 5.15.2
Using Event Handler: SendInput
Host OS: windows Version: 10 Architecture: x86_64

Anything else?

The input is correctly handles the input when it is passed in other places, e.g., through the taskbar:

Image

Certain inputs (seems mostly to happen with the analogue sticks and the triggers, maybe related to inputs with a floating point value attached?) will cause the red text that normally indicates controller events are being handled to become stuck on, though this is not consistent:
Image

While the program is hanging, the navigation buttons are shaded as if the mouse button is being held down:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions