Commits

mathematicalcoffee  committed c90230a

removed more logging messages

  • Participants
  • Parent commits 617a7a5

Comments (0)

Files changed (1)

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

  */
 function shouldBeUndecorated(win) {
     let max = win.get_maximized();
-    LOG('shouldBeUndecorated. maximised? ' + max);
     return ((max === Meta.MaximizeFlags.BOTH) ||
         (settings.get_boolean(Prefs.UNDECORATE_HALF_MAXIMIZED_KEY) && max));
 }
  * If so, undecorates the window. */
 function possiblyUndecorate(win) {
     if (shouldBeUndecorated(win)) {
-        LOG('e');
         if (!win.get_compositor_private()) {
             Mainloop.idle_add(function () {
                 undecorate(win);
                 return false; // define as one-time event
             });
         } else {
-        LOG('f');
             undecorate(win);
         }
     }
     if (!shouldAffect(win)) {
         return;
     }
-    LOG('onWindowAdded: ' + win.get_title() + ' b');
 
     // with set_hide_titlebar, set the window hint when the window is added and
     // there is no further need to listen to maximize/unmaximize on the window.
     if (USE_SET_HIDE_TITLEBAR) {
-        LOG('onWindowAdded: ' + win.get_title() + ' c');
         setHideTitlebar(win, true);
         // set_hide_titlebar undecorates half maximized, so if we wish not to we
         // will have to manually redo it ourselves
             }
         }
     } else {
-        LOG('onWindowAdded: ' + win.get_title() + ' d');
         // if it is added initially maximized, we undecorate it.
         possiblyUndecorate(win);
     }