diff options
author | crupest <crupest@outlook.com> | 2020-10-29 00:16:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-29 00:16:48 +0800 |
commit | c5125e9034a5b05700ed41aee30f43476cb2c7f2 (patch) | |
tree | 4056188cda8cdf5e2a2c891ab32289d70d327d2d /src/ui/WindowHost.cpp | |
parent | 52594324b302f6e9da10ac01fe803196371bb2d9 (diff) | |
download | cru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.tar.gz cru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.tar.bz2 cru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.zip |
...
Diffstat (limited to 'src/ui/WindowHost.cpp')
-rw-r--r-- | src/ui/WindowHost.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/WindowHost.cpp b/src/ui/WindowHost.cpp index 1dba4404..12eb746a 100644 --- a/src/ui/WindowHost.cpp +++ b/src/ui/WindowHost.cpp @@ -99,7 +99,8 @@ inline void BindNativeEvent( } } // namespace -WindowHost::WindowHost(Control* root_control) : root_control_(root_control) { +WindowHost::WindowHost(Control* root_control) + : root_control_(root_control), focus_control_(root_control) { const auto ui_application = IUiApplication::GetInstance(); auto native_window = ui_application->CreateWindow(nullptr); native_window_ = native_window; |