Bug 1420818 - For rendering to titlebar make CSD window decorations mode default, enable WM decorations on Elementary OS, r=jhorak
authorMartin Stransky <stransky@redhat.com>
Fri, 12 Jan 2018 08:41:00 +0100
changeset 453805 8dee5d879ef151920948af9cf56a4845957f2081
parent 453804 fe6f236e1fb51c18210ed992f53c2246669504b5
child 453806 d88cb52f392d66eb3b323a9d4ad4d452c7fd275d
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhorak
bugs1420818
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1420818 - For rendering to titlebar make CSD window decorations mode default, enable WM decorations on Elementary OS, r=jhorak MozReview-Commit-ID: FhF53Z34JS6
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -6873,18 +6873,20 @@ nsWindow::GetCSDSupportLevel() {
         } else if (strstr(currentDesktop, "openbox") != nullptr) {
             sCSDSupportLevel = CSD_SUPPORT_FLAT;
         } else if (strstr(currentDesktop, "i3") != nullptr) {
             sCSDSupportLevel = CSD_SUPPORT_NONE;
         } else if (strstr(currentDesktop, "MATE") != nullptr) {
             sCSDSupportLevel = CSD_SUPPORT_FLAT;
         } else if (strstr(currentDesktop, "Unity") != nullptr) {
             sCSDSupportLevel = CSD_SUPPORT_FLAT;
+        } else if (strstr(currentDesktop, "Pantheon") != nullptr) {
+            sCSDSupportLevel = CSD_SUPPORT_FULL;
         } else {
-            sCSDSupportLevel = CSD_SUPPORT_NONE;
+            sCSDSupportLevel = CSD_SUPPORT_FLAT;
         }
     } else {
         sCSDSupportLevel = CSD_SUPPORT_NONE;
     }
 
     // We don't support CSD_SUPPORT_FULL on Wayland
     if (!GDK_IS_X11_DISPLAY(gdk_display_get_default()) &&
         sCSDSupportLevel == CSD_SUPPORT_FULL) {