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

Can't get input event for mouse then window losing|regaining focus #50187

Open
kzerot opened this issue Jul 5, 2021 · 1 comment
Open

Can't get input event for mouse then window losing|regaining focus #50187

kzerot opened this issue Jul 5, 2021 · 1 comment

Comments

@kzerot
Copy link

kzerot commented Jul 5, 2021

Godot version

3.3.2

System information

Linux Manjaro, Win10, any hardware

Issue description

Working on some software, need to make drag'n'drop feature for files, but need to drop files on specific controls.
When you switch to Godot window and some mouse button is pressed, there are no Input Events fired for mouse motion|buttons unless you release button (releasing button also not fired). get_global_mouse_position() returns last mouse position before window switching.

Steps to reproduce

1 Start any app
2 drag'n'drop any file into window, or just press mouse button and then alt-tab to your app
3 As you can see InputEvents will fire only AFTER you release mouse button

Minimal reproduction project

Small project with label shows mouse global coordinates
MouseBug.zip

@kzerot
Copy link
Author

kzerot commented Jul 5, 2021

Also I think it's connected with
#33928

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

No branches or pull requests

3 participants