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

Non-embedded Windows receive NOTIFICATION_WM_MOUSE_EXIT notification on startup on Windows platform #67898

Closed
Sauermann opened this issue Oct 26, 2022 · 0 comments · Fixed by #67903

Comments

@Sauermann
Copy link
Contributor

Sauermann commented Oct 26, 2022

Godot version

v4.0.beta2.official [f8745f2]

System information

Windows 10

Issue description

Non embedded windows receive the NOTIFICATION_WM_MOUSE_EXIT notification on startup, when the mouse is not over their area without there being a NOTIFICATION_WM_MOUSE_ENTER before.

Steps to reproduce

Setup a project like this:

Configure, that the root window doesn't embed windows.

SceneTree:

  • Control
    • Window

The Window has the following script attached:

extends Window


func _notification(what):
	if (what == NOTIFICATION_WM_MOUSE_ENTER):
		print("enter")
	if (what == NOTIFICATION_WM_MOUSE_EXIT):
		print ("exit")

This is the content of the MRP.

Run the project while the mouse is outside of the area, where the Window appears. This causes the following output:

exit

I would expect, that there is no output like it is on linuxbsd.

Minimal reproduction project

BugNoWMEnterNotification.zip

@Sauermann Sauermann changed the title Non-embedded Window receive NOTIFICATION_WM_MOUSE_EXIT notification on startup on Windows platform Non-embedded Windows receive NOTIFICATION_WM_MOUSE_EXIT notification on startup on Windows platform Oct 26, 2022
@Chaosus Chaosus added this to the 4.0 milestone Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants