-
Notifications
You must be signed in to change notification settings - Fork 143
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
gtk-layer-shell exclusive zones do not appear to work #1285
Comments
Labwc does support layershell exclusive zones. But labwc does not prevent windows to be on top of it / under it when manually positioned. We do prevent automatically calculated geometry like maximized / tiled windows to overlap the exclusive zone however. How exactly is the "desktop background with icons" positioned and sized / does it use layershell as well? |
The desktop is a layer-shell window which is anchored to all four edges of the screen and set to the background layer; the panel is a layer-shell window which is anchored to either the top or bottom of the screen and with exclusive zone set. |
hm.. you are right. We do not update the layershell background layer for new exclusive zones. |
This ensures that the usable area is completely calculated before non exclusive-zone clients are positioned / resized. Fixes labwc#1285 Reported-by: @spl237
Just found this in the wlroots sources:
swaybg for example sets it to There is also an issue in labwc in that we calculate the usable area starting from bottom layer to overlay layer so that even with manually hacking wlroots to always use the usable area it would still not work for non-exclusive background layers with exclusive bottom or top layer clients. The following PR should fix the issue: Testing welcome. |
Tested here - fixes my problem! Many thanks for the very prompt fix. |
Thanks for testing. We have a no-self-merge policy (unless its a crash fix or some minor stuff) so it might take a bit to have the fix in the master branch. |
No problem at all - we're not in any hurry! Thanks again. |
Closing as patch fixes the issue. |
With the Raspberry Pi Desktop, the panel window is set to be an exclusive zone using gtk-layer-shell, and when run under wayfire, the desktop background and associated icons are pushed down so that the panel does not cover them.
Under labwc, this doesn't happen - the panel overlays the desktop and covers icons at the top of it.
Are exclusive zones not supported, or is this likely to be a bug in the implementation of the panel as one?
The text was updated successfully, but these errors were encountered: