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

NOTIFICATION_WM_MOUSE_ENTER doesn't emit when mouse button is being pressed #53170

Open
Schweini07 opened this issue Sep 28, 2021 · 4 comments
Open

Comments

@Schweini07
Copy link

Godot version

3.3 Stable, v4.0.dev.custom_build [916c37d]

System information

Manjaro Linux

Issue description

When normally entering the game with the mouse, the NOTIFICATION_WM_MOUSE_ENTER notification is emitted. But when a file is dragged into the game nothing happens. This issue is present in both Godot 3.3 and Godot 4.0-dev.

2021-09-28.13-07-34.mp4

.

Steps to reproduce

  1. Create a Node with a script including this code (3.3):
func _notification(what):
  if what == MainLoop.NOTIFICATION_WM_MOUSE_ENTER:
     print("Emitted")
  1. Try to drag a file into the game window, "Emitted" is not printed.

Minimal reproduction project

Test.zip

@Schweini07 Schweini07 changed the title NOTIFICATION_WM_MOUSE_ENTER doesn't emit when file is dragged in to game NOTIFICATION_WM_MOUSE_ENTER doesn't emit when file is dragged into game Sep 28, 2021
@KoBeWi
Copy link
Member

KoBeWi commented Sep 28, 2021

Might be not caused by file dragging, but the pressed mouse button. See #20881

@Schweini07
Copy link
Author

Then this is a duplicate, I suppose?

@KoBeWi
Copy link
Member

KoBeWi commented Sep 28, 2021

Ok I confirmed this is the same problem. But it involves windows not Controls, so it's probably triggered somewhere else. I'd leave it open.

@KoBeWi KoBeWi changed the title NOTIFICATION_WM_MOUSE_ENTER doesn't emit when file is dragged into game NOTIFICATION_WM_MOUSE_ENTER doesn't emit when mouse button is being pressed Sep 28, 2021
@MadDogMayCry0
Copy link

MadDogMayCry0 commented Oct 18, 2021

Godot version

3.3 Stable, v4.0.dev.custom_build [[916c37d]

No one can correct this mistake, since no one wants to delve into the problem and does not consider it a problem. Nevertheless, this is a problem :) and this problem leads to unpredictable behavior of your game :)

This problem is solved by the logical layer that I attached in the adjacent branch, but it is not as effective as if it was solved natively, although it works correctly as you expect.
#20881 (comment)

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