Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mouse emulation always sending events to the main window #98318

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

alexkar598
Copy link
Contributor

Simple test case:
TouchTestCaseSrc.zip

System info on the machine i tested with

Operating System: Arch Linux
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5825U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 16 5625
System Version: 1.10.0

Fixes #91099

Copy link
Contributor

@Sauermann Sauermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The missing window id is definitively a bug. I find it likely that this PR will resolve the linked issue, but I can't test it.
Implementation and code style are looking correct.

@AThousandShips AThousandShips changed the title Fixes mouse emulation always sending events to the main window Fix mouse emulation always sending events to the main window Oct 19, 2024
Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with touchscreen and Wacom tablet on Windows, it works fine, but I can't reproduce the issue without this PR. Window ID changes look correct.

@alexkar598
Copy link
Contributor Author

Tested with touchscreen and Wacom tablet on Windows, it works fine, but I can't reproduce the issue without this PR. Window ID changes look correct.

Heres a recording of before and after the fix (with a touchscreen but admittedly over RDP)

windows_broken.mp4
windows_fixed.mp4

@clayjohn clayjohn merged commit f83a273 into godotengine:master Oct 25, 2024
20 checks passed
@clayjohn
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows tablet (with touchscreen): Touches to non-embedded SubWindows are relayed to the main window
4 participants