From 18393eb09a391fe6d14a6556e8cc1e568e6b5eec Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:37:28 +0300 Subject: [PATCH] [Window] Ignore duplicate mouse enter events. --- scene/main/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/main/window.cpp b/scene/main/window.cpp index 7502f97e89e7..d409efbfabd9 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -738,6 +738,9 @@ void Window::_event_callback(DisplayServer::WindowEvent p_event) { return; } Window *root = get_tree()->get_root(); + if (mouse_in_window && root->gui.windowmanager_window_over == this) { + return; + } if (root->gui.windowmanager_window_over) { #ifdef DEV_ENABLED WARN_PRINT_ONCE("Entering a window while a window is hovered should never happen in DisplayServer.");