You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Viewport cancels existing tooltip when window looses focus
fixes #68197 when NOTIFICATION_WM_WINDOW_FOCUS_OUT is recieved by a viewport it will now call _gui_cancel_tooltip() to avoid it hanging around after the mouse events stop coming in
This commit is contained in:
@@ -491,6 +491,7 @@ void Viewport::_notification(int p_what) {
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
|
||||
_gui_cancel_tooltip();
|
||||
_drop_physics_mouseover();
|
||||
if (gui.mouse_focus && !gui.forced_mouse_focus) {
|
||||
_drop_mouse_focus();
|
||||
|
||||
Reference in New Issue
Block a user