Skip to content

Commit

Permalink
Merge pull request #93100 from bruvzg/dbl_enter_fx
Browse files Browse the repository at this point in the history
[Window] Ignore duplicate mouse enter events.
  • Loading branch information
akien-mga committed Jun 13, 2024
2 parents 68ebce2 + 18393eb commit 5c05e98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/main/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 5c05e98

Please sign in to comment.