Skip to content

Commit

Permalink
wayland: reaload widgets after outputs change
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Jun 10, 2024
1 parent a5acd26 commit d9ee88e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ruisapp/glue/linux/glue_wayland.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <nitki/queue.hpp>
#include <opros/wait_set.hpp>
#include <papki/fs_file.hpp>
#include <ruis/widgets/widget.hpp>
#include <sys/mman.h>
#include <utki/destructable.hpp>
#include <utki/unicode.hpp>
Expand Down Expand Up @@ -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();
});
}

Expand Down

0 comments on commit d9ee88e

Please sign in to comment.