mirror of
https://github.com/rad4day/Waybar.git
synced 2025-08-05 07:02:43 +02:00
Merge pull request #2196 from calvinchd/hyprland-window-empty-css
[hyprland/window] Add css class for empty window name
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user