-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw layer-shell popups on top of regular windows #4684
Comments
I do not like this solution, because I do not see such behavior specified anywhere in the wayland protocols. Can you elaborate why Sway even started drawing in this way for xdg-shell windows? |
@ammen99 And what would you suggest about the problem I described in the issue linked by emersion? I think it is reasonable for popups to be positioned over regular windows. Popups very often overlap other windows and usually you want to be able to see them (just like for the popups of waybar that show additional information when hovering some item). |
The solution would be that the compositor lets you configure order of surfaces by their namespace. Drawing popups on top will solve your problem, yes, but doesn't fix the fundamental issue - layer-shell's layers are nowhere near enough. |
It's a compositor policy. xdg-popup doesn't specify that popups should be drawn over everything else.
Let's say you have two overlapping windows: a text editor on top of a web browser. Let's say the user moves the mouse over a link in the web browser and the web browser shows a tooltip with xdg-popup. You want to draw the tooltip on top of both windows. |
But I really don't want to start thinking about exactly at which layer what application should be drawn - that'd be additional work that has to be done for every panel or application starter I want to try out. On the other hand, I can't imagine a usecase where popups shouldn't be drawn over other windows. This would really make life easier. |
@David96 You don't want to but you'll have to think it as soon as you want to add a third application which belongs to the top layer :) Anyway I see your point, maybe this isn't a bad idea after all. |
I would be willing to spend some time trying to implement this but I have zero experience with Wayland and basically none with wlroots and the sway codebase, so some pointer as to where to start would be appreciated. |
The code choosing the z-order is in |
xdg-shell popups are already drawn on top of other toplevels, regardless of the toplevels z-index. We should do the same for layer-shell popups.
Original issue: swaywm/wlr-protocols#60
The text was updated successfully, but these errors were encountered: