Merge pull request #93100 from bruvzg/dbl_enter_fx

[Window] Ignore duplicate mouse enter events.
This commit is contained in:
Rémi Verschelde 2024-06-13 11:50:36 +02:00
commit 5c05e986f9
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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.");