hyprland/window: use empty() for empty window name check

This commit is contained in:
Calvin Chu 2023-06-03 12:29:36 +10:00
parent a3912436be
commit 17a56aa4f7
No known key found for this signature in database
GPG Key ID: 2DB1635708CFF94E
1 changed files with 2 additions and 1 deletions

View File

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