aboutsummaryrefslogtreecommitdiff
path: root/src/ui/WindowHost.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-29 00:16:48 +0800
committercrupest <crupest@outlook.com>2020-10-29 00:16:48 +0800
commitc5125e9034a5b05700ed41aee30f43476cb2c7f2 (patch)
tree4056188cda8cdf5e2a2c891ab32289d70d327d2d /src/ui/WindowHost.cpp
parent52594324b302f6e9da10ac01fe803196371bb2d9 (diff)
downloadcru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.tar.gz
cru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.tar.bz2
cru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.zip
...
Diffstat (limited to 'src/ui/WindowHost.cpp')
-rw-r--r--src/ui/WindowHost.cpp3
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;