wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Is it possible to turn off server-drawn borders for menus?

Open spl237 opened this issue 2 years ago • 5 comments

I've noticed that under Wayfire, menus get a server-drawn decorated border which happens irrespective of the GTK theme settings; it's an alpha effect around the edge rather than a solid border.

This then has the knock-on effect that menus look different when running under Xwayland, because they don't get a server-drawn border and instead get their menu appearance from the GTK theme.

Is there an easy way to turn off the server-drawn menu borders so I can just show those from the GTK theme consistently?

spl237 avatar Nov 21 '23 07:11 spl237

Do you mean that you see shadows around gtl menus? These are drawn by the client and Wayfire cannot do anything about it.

ammen99 avatar Nov 21 '23 08:11 ammen99

What I am seeing doesn't seem to be coming from the client.

The GTK theme CSS has a selector for "menu", and another for ".csd menu".

With an application running under Xwayland, menus get a border drawn as defined in the "menu" selector, as you would expect, and anything in ".csd menu" is ignored.

With an application running under Wayland, menus get a border drawn as defined in the ".csd menu" selector, but they also get a single pixel line of alpha shading around the outside of this. I can disable the client border by setting the ".csd menu" selector to have no border, but I still get the alpha shaded line around the outside, which I think has to be coming from the server; nothing I do in the CSS turns it off.

So it looks to me as if the server is adding a single pixel outline around menus, including around whatever decoration the client itself adds.

spl237 avatar Nov 21 '23 08:11 spl237

Without a screenshot it is difficult to say for sure, but Wayfire generally doesn't add anything like what you described. I would try to disable as many plugins as possible to see whether there is indeed a Wayfire plugin which causes this.

ammen99 avatar Nov 21 '23 08:11 ammen99

@spl237: Out of interest, what version(s) of GTK are you using?

flexibeast avatar Dec 12 '23 08:12 flexibeast

3.24, with a few of my own patches added to fix some of Gnome's more egregious UI decisions...

spl237 avatar Dec 12 '23 10:12 spl237