Bug 1432385 - Use window manager borders on LXQt, r=jhorak
authorMartin Stransky <stransky@redhat.com>
Thu, 25 Jan 2018 15:52:06 +0100
changeset 401265 c6b717a7f871e97148a5d5fcdeb3e0c7b6724c53
parent 401264 931c61b9f7a889329ab73d00414483af47ac3f7e
child 401266 399becfe083accbbe65c2b80453e023a9faf44d2
push id33342
push userrgurzau@mozilla.com
push dateTue, 30 Jan 2018 09:59:26 +0000
treeherdermozilla-central@a23e3bbd2019 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhorak
bugs1432385
milestone60.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 1432385 - Use window manager borders on LXQt, r=jhorak MozReview-Commit-ID: JkyBMBovCIG
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -6879,16 +6879,18 @@ nsWindow::GetCSDSupportLevel() {
         } 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 if (strstr(currentDesktop, "LXQt") != nullptr) {
+            sCSDSupportLevel = CSD_SUPPORT_FULL;
         } else {
             sCSDSupportLevel = CSD_SUPPORT_FLAT;
         }
     } else {
         sCSDSupportLevel = CSD_SUPPORT_NONE;
     }
 
     // We don't support CSD_SUPPORT_FULL on Wayland