Merge pull request #2196 from calvinchd/hyprland-window-empty-css
[hyprland/window] Add css class for empty window name
This commit is contained in:
commit
24407dbf4a
|
@ -93,6 +93,12 @@ void Window::onEvent(const std::string& ev) {
|
|||
|
||||
lastView = windowName;
|
||||
|
||||
if (windowName.empty()) {
|
||||
label_.get_style_context()->add_class("empty");
|
||||
} else {
|
||||
label_.get_style_context()->remove_class("empty");
|
||||
}
|
||||
|
||||
spdlog::debug("hyprland window onevent with {}", windowName);
|
||||
|
||||
dp.emit();
|
||||
|
|
Loading…
Reference in New Issue