Closed Hubro closed 1 year ago
layer to top in waybar config READ THE WIKI AAAAAAAAAAAAAAAAAAAAAAAAAA https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#waybar-popups-render-behind-the-windows
I have actually read the entire wiki :sweat_smile: But unfortunately I am severely limited by having normal human brain.
Sorry for wasting your time. Hopefully this closed issue will help other people Googling the same issue with different wording.
yeah the other 10 as well
I used the words "context menu", "under" and "below"... :sweat_smile:
On the bright side, without the Wiki I would probably have opened 30 dumb issues instead of just 2!
Interesting observation though, setting "layer": "top"
means that the entire waybar is rendered above windows, which feels very weird (if you drag a floating window over the bar). In Sway this isn't necessary, and context menus are still always displayed above windows :thinking:
So it seems like there's room for Hyprland to handle this better? Can Hyprland detect which surfaces are context menus and choose to draw those on top of all other windows? Is this what Sway does?
technically layer popups should be rendered above windows but I disagree with that methodology cuz its dumb
I don't know enough about wayland to have any opinion on what the best methodology is, but from a user perspective it's definitely weird that popups render below windows by default :wink:
@Hubro, in your waybar config, if you have a setting for "mode" try commenting it out. I found the dock mode seems to still keep the context menus and tooltips behind windows if that setting is actually set. Commenting it out fixed the issue for me.
@kcrmson I don't have that setting in my config, unfortunately.
So are you saying that you don't have "layer": "top"
in your Waybar config, and your context menus are still correctly drawn on top of other windows? :thinking:
I do have "layer": "top"
set, i do not have "mode": "dock"
set (which I did have set originally but having it on caused the same problem you were having).
The mode: dock
part should also be mentioned (and possibly explained) in the wiki. I had the same issue, feeling pretty stupid when I read all the comments and posts all over the internet, some more open, some rather hostile, all pointing at the single thing in wiki (layer: top
) which just isn't enough apparently.
When I right click an application icon in the Waybar tray, the resulting context menu is drawn below regular docked windows:
This means I have to go to an empty workspace before I can use these context menus, which is pretty tedious.
I'm guessing there's probably a way to fix this with configuration, maybe some window rules, but I don't know where to start.
I tried finding existing bug reports about this, but couldn't find anything, which is weird. This issue seems like it would immediately cause other people to file a bug report :smile:
This makes me think it could be something with my configuration, so I've attached it:
hyprland.conf:
keybinds.conf:
windowrules.conf: