Closed Bug 1913104 Opened 2 months ago Closed 2 months ago

Remove X11 mask code.

Categories

(Core :: Widget: Gtk, task)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

No description provided.

We're unlikely to use this code in the near future (we already cannot
use it in Mutter). Let's get rid of it.

This one is still used on old systems or without compositing, on ESR lines and so on. So better to keep it here.

(In reply to Martin Stránský [:stransky] (ni? me) from comment #2)

This one is still used on old systems or without compositing, on ESR lines and so on. So better to keep it here.

Can you elaborate? It's disabled on GNOME, is it somehow needed elsewhere?

Context here is that Vlad was pondering to stop making X shapes work in KDE (in XWayland only perhaps?).

(in XWayland only perhaps?).

Yeah, xwayland only.

(In reply to Martin Stránský [:stransky] (ni? me) from comment #2)

This one is still used on old systems or without compositing, on ESR lines and so on. So better to keep it here.

My understanding is that with no compositing, we have solid-csd (and thus no rounded corners), and with compositing, we use transparency (and thus masking is not needed), is that somehow not true?

Flags: needinfo?(stransky)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #6)

My understanding is that with no compositing, we have solid-csd (and thus no rounded corners), and with compositing, we use transparency (and thus masking is not needed), is that somehow not true?

AFAIK its used for popus - do the all have sharp/non transparent corners with solid-csd?

Flags: needinfo?(stransky)

Ah, that is right, e.g. on I3 menu rounded corners break.

It may also break twm and similar ones used on RHEL systems, Firefox used over VNC and so on.

Would you be fine removing the titlebar mask (which is unused) while not removing the more general mask?

If so happy to do that.

Flags: needinfo?(stransky)

Ok, I looked a bit at other toolkits and platforms:

  • QT makes the menus and such square, so they look good.
  • GTK and Chromium just show artifacts in the corners.

I tweaked the patch to avoid using rounded corners and shadows:

  /* On some linux WMs we need to draw square menus because alpha is not available */
  @media (-moz-platform: linux) and (not (-moz-gtk-csd-available)) {
    --panel-shadow-margin: 0px !important;
    --panel-border-radius: 0px !important;
  }

I think that's better than all the untested-on-automation shape mask code, wdyt?

(In reply to Emilio Cobos Álvarez (:emilio) from comment #11)

I think that's better than all the untested-on-automation shape mask code, wdyt?

Okay, no problem.

Flags: needinfo?(stransky)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2822f96450d4 Remove X11 mask code. r=stransky,desktop-theme-reviewers,dao
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d3e33b1c2438 Remove X11 mask code. r=stransky,desktop-theme-reviewers,dao
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
Regressions: 1922752
Regressions: 1923289
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: