Commits

mathematicalcoffee committed 9eafe03

FIX: don't decorate/undecorate desktop window

  • Participants
  • Parent commits 4fec9de

Comments (0)

Files changed (1)

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

         let winList = global.get_window_actors().map(function (w) { return w.meta_window; }),
             i       = winList.length;
         while (i--) {
+            if (winList[i].window_type === Meta.WindowType.DESKTOP) {
+                continue;
+            }
             if (USE_SET_HIDE_TITLEBAR) {
                 onWindowAdded(null, winList[i]);
             } else {
     let winList = global.get_window_actors().map(function (w) { return w.meta_window; }),
         i       = winList.length;
     while (i--) {
+        if (winList[i].window_type === Meta.WindowType.DESKTOP) {
+            continue;
+        }
         if (winList[i].hasOwnProperty('_maximusDecoratedOriginal')) {
             if (USE_SET_HIDE_TITLEBAR) {
                 let win = winList[i];