Skip to content

Commit

Permalink
[Window] Ignore duplicate mouse enter events.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Jun 12, 2024
1 parent 475248d commit 18393eb
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 18393eb

Please sign in to comment.