From d9ee88e3a8cca6d28375d9fceaead699f455da25 Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Mon, 10 Jun 2024 12:34:33 +0300 Subject: [PATCH] wayland: reaload widgets after outputs change --- src/ruisapp/glue/linux/glue_wayland.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ruisapp/glue/linux/glue_wayland.cxx b/src/ruisapp/glue/linux/glue_wayland.cxx index cb8e6c7..efb569d 100644 --- a/src/ruisapp/glue/linux/glue_wayland.cxx +++ b/src/ruisapp/glue/linux/glue_wayland.cxx @@ -25,6 +25,7 @@ along with this program. If not, see . #include #include #include +#include #include #include #include @@ -2055,7 +2056,13 @@ struct window_wrapper : public utki::destructable { this->ui_queue.push_back([this]() { this->outputs_changed_message_pending = false; + // this call will update ruis::context::units values this->resize(this->cur_window_dims); + + // reload widgets herarchy due to possible update of ruis::context::units values + auto& app = ruisapp::application::inst(); + auto& root_widget = app.gui.get_root(); + root_widget.reload(); }); }