mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

To support rounded corners of Gtk+ titlebar themes (Adwaita, Radiance..) in GNOME we need to use X shape mask as fully transparent toplevel window causes various issues (like Bug 1516224). We draw mShell as transparent and mContainer as non-transparent with shape mask applied. The shape mask is generated only when titlebar rendering is enabled and it's generated from GtkHeaderBar Widget to match the exact look. We use existing mTransparencyBitmap for the shape mask where mTransparencyBitmapForTitlebar controls whether it's a general shape mask or our specialised shape for titlebar only. This is already enabled for GNOME environment by default. So there's a new preference widget.default-hidden-titlebar added to easily disable it if any issue appears during testing. Differential Revision: https://phabricator.services.mozilla.com/D17283 --HG-- extra : moz-landing-system : lando