From 48d2759df5d7b23e51ea5c22e15e62337138ac10 Mon Sep 17 00:00:00 2001 From: Carlos Ortega Date: Sun, 17 Jul 2022 16:13:32 +0100 Subject: [PATCH] add layout as class to language module --- src/modules/sway/language.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/sway/language.cpp b/src/modules/sway/language.cpp index 4bdf3c79..d3730a11 100644 --- a/src/modules/sway/language.cpp +++ b/src/modules/sway/language.cpp @@ -120,7 +120,9 @@ auto Language::update() -> void { } auto Language::set_current_layout(std::string current_layout) -> void { + label_.get_style_context()->remove_class(layout_.short_name); layout_ = layouts_map_[current_layout]; + label_.get_style_context()->add_class(layout_.short_name); } auto Language::init_layouts_map(const std::vector& used_layouts) -> void {