diff --git a/apps/gclient.cpp b/apps/gclient.cpp index 0bdeddaf..86bf30bf 100644 --- a/apps/gclient.cpp +++ b/apps/gclient.cpp @@ -42,7 +42,7 @@ Result luna_main(int argc, char** argv) ColorWidget blue(ui::BLUE); layout.add_widget(blue); - ui::HorizontalLayout sublayout; + ui::HorizontalLayout sublayout(ui::AdjustHeight::No, ui::AdjustWidth::Yes); layout.add_widget(sublayout); ColorWidget red(ui::RED); diff --git a/libui/src/Window.cpp b/libui/src/Window.cpp index be8fcd0f..8d50ce72 100644 --- a/libui/src/Window.cpp +++ b/libui/src/Window.cpp @@ -94,6 +94,7 @@ namespace ui Result Window::draw() { + m_canvas.fill(m_background); if (m_main_widget) return m_main_widget->draw(m_canvas); update(); return {};