Bug 1681191 [Linux] Don't render titlebar with shape masks on Wayland, r=jhorak

Differential Revision: https://phabricator.services.mozilla.com/D98976
This commit is contained in:
stransky 2020-12-08 07:51:08 +00:00
Родитель 48ac14fba8
Коммит ad1862149f
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -7912,14 +7912,14 @@ bool nsWindow::TitlebarUseShapeMask() {
return false;
}
// We use shape masks on Mutter/X.org as we can't resize Firefox window
// there (Bug 1530252).
// We can'y use shape masks on Mutter/X.org as we can't resize Firefox
// window there (Bug 1530252).
const char* currentDesktop = getenv("XDG_CURRENT_DESKTOP");
if (currentDesktop) {
if (strstr(currentDesktop, "GNOME") != nullptr) {
const char* sessionType = getenv("XDG_SESSION_TYPE");
if (sessionType) {
return (strstr(sessionType, "x11") == nullptr);
if (sessionType && strstr(sessionType, "x11") != nullptr) {
return false;
}
}
}