Merge pull request #2196 from calvinchd/hyprland-window-empty-css

[hyprland/window] Add css class for empty window name
pull/2213/head^2
Alex 2023-06-05 16:48:59 +02:00 committed by GitHub
commit 24407dbf4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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();