You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
[Window] Ignore duplicate mouse enter events.
This commit is contained in:
@@ -738,6 +738,9 @@ void Window::_event_callback(DisplayServer::WindowEvent p_event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Window *root = get_tree()->get_root();
|
Window *root = get_tree()->get_root();
|
||||||
|
if (mouse_in_window && root->gui.windowmanager_window_over == this) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (root->gui.windowmanager_window_over) {
|
if (root->gui.windowmanager_window_over) {
|
||||||
#ifdef DEV_ENABLED
|
#ifdef DEV_ENABLED
|
||||||
WARN_PRINT_ONCE("Entering a window while a window is hovered should never happen in DisplayServer.");
|
WARN_PRINT_ONCE("Entering a window while a window is hovered should never happen in DisplayServer.");
|
||||||
|
|||||||
Reference in New Issue
Block a user