소스 검색

Cancel tooltips when mouse leaves window

This is a backport of 807431c49a6b33ecc88f8d4ebcb3b2f359591b1c.

(cherry picked from commit bea070235cc06d3d610cc7c6b91781db89ca7ac8)
Alex Docauer 1 년 전
부모
커밋
26e7fb2dc1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/main/viewport.cpp

+ 1 - 0
scene/main/viewport.cpp

@@ -408,6 +408,7 @@ void Viewport::_notification(int p_what) {
 			gui.mouse_in_window = false;
 			_drop_physics_mouseover();
 			_drop_mouse_over();
+			_gui_cancel_tooltip();
 			// When the mouse exits the window, we want to end mouse_over, but
 			// not mouse_focus, because, for example, we want to continue
 			// dragging a scrollbar even if the mouse has left the window.