From 6d03d9f6a9a954d584e1cdfb6c3456e7528ebc14 Mon Sep 17 00:00:00 2001 From: Robinhuett <5955614+Robinhuett@users.noreply.github.com> Date: Sun, 27 Jan 2019 11:59:07 +0100 Subject: [PATCH] fix(window): Fix #154 --- src/modules/sway/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/sway/window.cpp b/src/modules/sway/window.cpp index ed36d0b..9c569ff 100644 --- a/src/modules/sway/window.cpp +++ b/src/modules/sway/window.cpp @@ -25,9 +25,9 @@ void waybar::modules::sway::Window::worker() auto parsed = parser_.parse(res.payload); // Check for waybar prevents flicker when hovering window module if ((parsed["change"] == "focus" || parsed["change"] == "title") - && parsed["container"]["focused"].asBool()) { - window_ = Glib::Markup::escape_text(parsed["container"]["name"].asString() - && parsed["container"]["name"].asString() != "waybar"); + && parsed["container"]["focused"].asBool() + && parsed["container"]["name"].asString() != "waybar") { + window_ = Glib::Markup::escape_text(parsed["container"]["name"].asString()); windowId_ = parsed["container"]["id"].asInt(); dp.emit(); } else if ((parsed["change"] == "close"