From e903083732b0d4638ac066fc85b030b121d8e7e6 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Tue, 30 Sep 2025 00:16:13 +0800 Subject: Impl input method for xim 2. --- src/platform/gui/xcb/Window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/platform/gui/xcb/Window.cpp') diff --git a/src/platform/gui/xcb/Window.cpp b/src/platform/gui/xcb/Window.cpp index 2b4d57d9..0085dae7 100644 --- a/src/platform/gui/xcb/Window.cpp +++ b/src/platform/gui/xcb/Window.cpp @@ -302,7 +302,8 @@ void XcbWindow::SetToForeground() { void XcbWindow::RequestRepaint() { // TODO: true throttle - paint_event_.Raise(nullptr); + repaint_canceler_.Reset( + application_->SetImmediate([this] { paint_event_.Raise(nullptr); })); } std::unique_ptr XcbWindow::BeginPaint() { -- cgit v1.2.3