Bug 1432385 - Use window manager borders on LXQt, r=jhorak a=ritu
authorMartin Stransky <stransky@redhat.com>
Thu, 25 Jan 2018 15:52:06 +0100
changeset 452389 0128f159f3a3aabd70b0b6bddc50255c907bc7a6
parent 452388 31a1ad5257ecfd6b3d5d79c34c3ff286d390d77e
child 452390 38c1798e2a2e7d06733f1d715af22d3d44d454e7
push id8703
push userarchaeopteryx@coole-files.de
push dateWed, 14 Feb 2018 17:05:07 +0000
treeherdermozilla-beta@d5b7bbc956d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhorak, ritu
bugs1432385
milestone59.0
Bug 1432385 - Use window manager borders on LXQt, r=jhorak a=ritu MozReview-Commit-ID: JkyBMBovCIG
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -6875,16 +6875,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