mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
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:
commit
986a4279fa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user