Merge pull request #68447 from Grimmr/clean-tooltips-on-WM-focus-off

Viewport cancels existing tooltip when window looses focus
This commit is contained in:
Rémi Verschelde 2022-11-25 14:04:40 +01:00
commit 986a4279fa
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -492,6 +492,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();