diff --git a/src/modules/hyprland/window.cpp b/src/modules/hyprland/window.cpp index 67631d55..714d0a72 100644 --- a/src/modules/hyprland/window.cpp +++ b/src/modules/hyprland/window.cpp @@ -92,7 +92,8 @@ void Window::onEvent(const std::string& ev) { if (windowName == lastView) return; lastView = windowName; - if (windowName[0] == '\0') { + + if (windowName.empty()) { label_.get_style_context()->add_class("empty"); } else { label_.get_style_context()->remove_class("empty");