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

[hyprland/window] Add css class for empty window name
This commit is contained in:
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

View File

@ -93,6 +93,12 @@ void Window::onEvent(const std::string& ev) {
lastView = windowName; 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); spdlog::debug("hyprland window onevent with {}", windowName);
dp.emit(); dp.emit();