Commits

mathematicalcoffee committed d0e64a8

added GNOME 3.2 support (USE_SET_HIDE_TITLEBAR must be false or it won't work)

  • Participants
  • Parent commits 3f4fbde
  • Branches dev-polyglot

Comments (0)

Files changed (2)

File maximus@mathematical.coffee.gmail.com/extension.js

 // It is more stable than the default method, but *will not work* with
 // some window themes (for example Ubuntu's Ambiance and Radiance) that do
 // not properly implement the set_hide_titlebar property of windows.
+// Also *DOES NOT WORK ON GNOME 3.2*.
 var USE_SET_HIDE_TITLEBAR = true;
 
 /*** Code proper, don't edit anything below **/
 const Main = imports.ui.main;
 
 // if the theme is Ambiance or Radiance then USE_SET_HIDE_TITLEBAR won't work so switch.
-if (USE_SET_HIDE_TITLEBAR && Meta.prefs_get_theme().match(/^(?:Ambiance|Radiance)$/)) {
+// (or if we're on GNOME 3.2)
+const ShellVersion = imports.misc.config.PACKAGE_VERSION.split('.');
+if (USE_SET_HIDE_TITLEBAR &&
+        (Meta.prefs_get_theme().match(/^(?:Ambiance|Radiance)$/) ||
+         ShellVersion[1] < 4)) {
     USE_SET_HIDE_TITLEBAR = false;
 }
 

File maximus@mathematical.coffee.gmail.com/metadata.json

  "gettext-domain": "maximus",
  "description": "Undecorate maximized windows, like Ubuntu's old 'Maximus' package. See readme at extension homepage.",
  "shell-version": [ 
+     "3.2",
      "3.4",
      "3.6"
  ],