From 4a30bf58a48ed6f31f4c53473e8de70a8cd819da Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 6 Dec 2025 20:06:10 +0800 Subject: Fix SDL popup window. --- include/cru/ui/controls/Window.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/cru/ui/controls/Window.h') diff --git a/include/cru/ui/controls/Window.h b/include/cru/ui/controls/Window.h index 131d68a8..355b03a9 100644 --- a/include/cru/ui/controls/Window.h +++ b/include/cru/ui/controls/Window.h @@ -24,8 +24,9 @@ class CRU_UI_API Window Window(); - static Window* CreatePopup(); + static Window* CreatePopup(Control* attached_control); + Control* GetAttachedControl(); void SetAttachedControl(Control* control); platform::gui::INativeWindow* GetNativeWindow(); @@ -36,6 +37,7 @@ class CRU_UI_API Window std::unique_ptr control_host_; Control* attached_control_; + EventHandlerRevokerGuard parent_window_guard_; EventHandlerRevokerListGuard gain_focus_on_create_and_destroy_when_lose_focus_event_guard_; -- cgit v1.2.3