aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/RootControl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/RootControl.cpp')
-rw-r--r--src/ui/controls/RootControl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/controls/RootControl.cpp b/src/ui/controls/RootControl.cpp
index c6d9a577..1ebcb6e7 100644
--- a/src/ui/controls/RootControl.cpp
+++ b/src/ui/controls/RootControl.cpp
@@ -27,10 +27,7 @@ render::RenderObject* RootControl::GetRenderObject() const {
void RootControl::EnsureWindowCreated() { this->GetNativeWindow(true); }
void RootControl::SetRect(const Rect& rect) {
- auto native_window = GetNativeWindow(false);
- if (!native_window) return;
-
- native_window->SetWindowRect(rect);
+ window_host_->SetWindowRect(rect);
}
void RootControl::Show(bool create) {