From 0f926d5094d1e69ab1cee138e47d4a40fc8bb0be Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 16 Sep 2023 13:12:26 +0200 Subject: [PATCH] libui: Properly request redraws from the server Before this, the call to update() was always skipped. --- libui/src/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libui/src/Window.cpp b/libui/src/Window.cpp index 441e47db..fc12467d 100644 --- a/libui/src/Window.cpp +++ b/libui/src/Window.cpp @@ -75,7 +75,7 @@ namespace ui Result Window::draw() { m_canvas.fill(m_background); - if (m_main_widget) return m_main_widget->draw(m_canvas); + if (m_main_widget) TRY(m_main_widget->draw(m_canvas)); update(); return {}; }