aboutsummaryrefslogtreecommitdiff
path: root/src/osx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-28 22:32:55 +0800
committercrupest <crupest@outlook.com>2021-11-28 22:32:55 +0800
commit80096172330bc0148320384f4b01f3ea62e52c92 (patch)
treeb67e57541189503861f4df0dd621a6b2fcec6c7d /src/osx
parent48a70ee60683d6ced778ad82f4510975c74dc4c7 (diff)
downloadcru-80096172330bc0148320384f4b01f3ea62e52c92.tar.gz
cru-80096172330bc0148320384f4b01f3ea62e52c92.tar.bz2
cru-80096172330bc0148320384f4b01f3ea62e52c92.zip
...
Diffstat (limited to 'src/osx')
-rw-r--r--src/osx/gui/Window.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osx/gui/Window.mm b/src/osx/gui/Window.mm
index fcbc5cb5..1a42f340 100644
--- a/src/osx/gui/Window.mm
+++ b/src/osx/gui/Window.mm
@@ -78,6 +78,8 @@ void OsxWindowPrivate::OnWindowDidResize() {
draw_layer_ = CreateLayer(Convert(content_rect_.GetSize()));
resize_event_.Raise(osx_window_->GetClientSize());
+
+ osx_window_->RequestRepaint();
}
void OsxWindowPrivate::OnBecomeKeyWindow() { focus_event_.Raise(FocusChangeType::Gain); }