mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
hyprland/window: Fix overlap with .hidden class from default style
This commit is contained in:
parent
dffba78401
commit
14c6550593
@ -76,5 +76,5 @@ window widget:
|
|||||||
- *window#waybar.floating* When there are only floating windows in the workspace
|
- *window#waybar.floating* When there are only floating windows in the workspace
|
||||||
- *window#waybar.fullscreen* When there is a fullscreen window in the workspace;
|
- *window#waybar.fullscreen* When there is a fullscreen window in the workspace;
|
||||||
useful with Hyprland's *fullscreen, 1* mode
|
useful with Hyprland's *fullscreen, 1* mode
|
||||||
- *window#waybar.hidden* When there are hidden windows in the workspace; usually
|
- *window#waybar.hidden-window* When there are hidden windows in the workspace;
|
||||||
occurs due to window swallowing
|
can occur due to window swallowing, *fullscreen, 1* mode, or grouped windows
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "modules/hyprland/backend.hpp"
|
#include "modules/hyprland/backend.hpp"
|
||||||
#include "util/gtk_icon.hpp"
|
|
||||||
#include "util/json.hpp"
|
|
||||||
#include "util/rewrite_string.hpp"
|
#include "util/rewrite_string.hpp"
|
||||||
|
|
||||||
namespace waybar::modules::hyprland {
|
namespace waybar::modules::hyprland {
|
||||||
@ -74,7 +72,7 @@ auto Window::update() -> void {
|
|||||||
setClass("empty", workspace_.windows == 0);
|
setClass("empty", workspace_.windows == 0);
|
||||||
setClass("solo", solo_);
|
setClass("solo", solo_);
|
||||||
setClass("floating", all_floating_);
|
setClass("floating", all_floating_);
|
||||||
setClass("hidden", hidden_);
|
setClass("hidden-window", hidden_);
|
||||||
setClass("fullscreen", fullscreen_);
|
setClass("fullscreen", fullscreen_);
|
||||||
|
|
||||||
if (!last_solo_class_.empty() && solo_class_ != last_solo_class_) {
|
if (!last_solo_class_.empty() && solo_class_ != last_solo_class_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user