ソースを参照

Merge pull request #104328 from Grublady/popup-mouse-enter

Update mouse-entered state when subwindow closes (macOS display server)
Rémi Verschelde 5 ヶ月 前
コミット
0648f55276
1 ファイル変更2 行追加0 行削除
  1. 2 0
      platform/macos/display_server_macos.mm

+ 2 - 0
platform/macos/display_server_macos.mm

@@ -1921,6 +1921,8 @@ void DisplayServerMacOS::delete_sub_window(WindowID p_id) {
 
 	[wd.window_object setContentView:nil];
 	[wd.window_object close];
+
+	mouse_enter_window(get_window_at_screen_position(mouse_get_position()));
 }
 
 void DisplayServerMacOS::window_set_rect_changed_callback(const Callable &p_callable, WindowID p_window) {