From 14c65505933d251c1da28b0e0ac87a8586b143c2 Mon Sep 17 00:00:00 2001 From: gardenapple Date: Wed, 12 Jul 2023 17:56:12 +0300 Subject: [PATCH] hyprland/window: Fix overlap with .hidden class from default style --- man/waybar-hyprland-window.5.scd | 4 ++-- src/modules/hyprland/window.cpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/man/waybar-hyprland-window.5.scd b/man/waybar-hyprland-window.5.scd index 2a3f62f1..b8b25ced 100644 --- a/man/waybar-hyprland-window.5.scd +++ b/man/waybar-hyprland-window.5.scd @@ -76,5 +76,5 @@ window widget: - *window#waybar.floating* When there are only floating windows in the workspace - *window#waybar.fullscreen* When there is a fullscreen window in the workspace; useful with Hyprland's *fullscreen, 1* mode -- *window#waybar.hidden* When there are hidden windows in the workspace; usually - occurs due to window swallowing +- *window#waybar.hidden-window* When there are hidden windows in the workspace; + can occur due to window swallowing, *fullscreen, 1* mode, or grouped windows diff --git a/src/modules/hyprland/window.cpp b/src/modules/hyprland/window.cpp index f3b2a767..7519e80e 100644 --- a/src/modules/hyprland/window.cpp +++ b/src/modules/hyprland/window.cpp @@ -11,8 +11,6 @@ #include #include "modules/hyprland/backend.hpp" -#include "util/gtk_icon.hpp" -#include "util/json.hpp" #include "util/rewrite_string.hpp" namespace waybar::modules::hyprland { @@ -74,7 +72,7 @@ auto Window::update() -> void { setClass("empty", workspace_.windows == 0); setClass("solo", solo_); setClass("floating", all_floating_); - setClass("hidden", hidden_); + setClass("hidden-window", hidden_); setClass("fullscreen", fullscreen_); if (!last_solo_class_.empty() && solo_class_ != last_solo_class_) {