зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1583852 - [Linux] Disable round corners/alpha blending for PictureInPicture windows, r=jhorak
This bug depends on Bug 1584492. Differential Revision: https://phabricator.services.mozilla.com/D47415 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
14938bad3b
Коммит
43b2ca4820
|
@ -3694,8 +3694,9 @@ nsresult nsWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
|
|||
|
||||
// There's no point to configure transparency
|
||||
// on non-composited screens.
|
||||
// Also disable transparency for PictureInPicture windows.
|
||||
GdkScreen* screen = gdk_screen_get_default();
|
||||
if (gdk_screen_is_composited(screen)) {
|
||||
if (gdk_screen_is_composited(screen) && !mIsPIPWindow) {
|
||||
// Some Gtk+ themes use non-rectangular toplevel windows. To fully
|
||||
// support such themes we need to make toplevel window transparent
|
||||
// with ARGB visual.
|
||||
|
|
Загрузка…
Ссылка в новой задаче