Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.75k stars 708 forks source link

Hyprland - Window module doesn't change to fullscreen style if a stacked window group is on fullscreen #3746

Closed izmyname closed 1 week ago

izmyname commented 2 weeks ago

I have a window#waybar.fullscreen #window in my style.css configured in the way it changes colours, whenever a focused window is on fullscreen. However, it doesn't change its style if I put a stacked window group on fullscreen.

To demonstrate.

  1. default window style, no fullscreen. 20241106_01h27m03s_grim

  2. firefox window is on fullscreen - the module changed its colours. 20241106_01h27m32s_grim

  3. firefox is inside a stacked group, the group is on fullscreen - the module didn't change its colours. 20241106_01h29m44s_grim

izmyname commented 2 weeks ago

Some more info from Hyprland discussions. https://github.com/hyprwm/Hyprland/discussions/8369#discussioncomment-11165849

Aqa-Ib commented 2 weeks ago

Having a quick look at waybar's code, it seems that the issue is here: https://github.com/Alexays/Waybar/blob/5f260516af9a3e5791c26c7fc18a85a47da5b23f/src/modules/hyprland/window.cpp#L194-L198

I would argue that both flags are wrong, because:

Seems to me that this block could be entirely removed.

izmyname commented 2 weeks ago

Removing the code above, before building, fixes the problem.