hyprland/window: add css class for empty label

This commit is contained in:
Calvin Chu 2023-06-01 21:38:27 +10:00
parent 47193a3d2f
commit a3912436be
No known key found for this signature in database
GPG Key ID: 2DB1635708CFF94E
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ void Window::onEvent(const std::string& ev) {
if (windowName == lastView) return;
lastView = windowName;
if (windowName[0] == '\0') {
label_.get_style_context()->add_class("empty");
} else {
label_.get_style_context()->remove_class("empty");
}
spdlog::debug("hyprland window onevent with {}", windowName);