~njpatel/unity/nicer-gobject-signals

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/PluginAdapter.cpp

  • Committer: Neil Jagdish Patel
  • Date: 2011-07-07 20:42:57 UTC
  • mfrom: (1255.1.15 unity)
  • Revision ID: neil.patel@canonical.com-20110707204257-t4lnftykpft24a37
[merge] trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <sstream>
22
22
#include "PluginAdapter.h"
23
23
 
 
24
#include "NuxCore/Logger.h"
 
25
 
 
26
namespace {
 
27
 
 
28
nux::logging::Logger logger("unity.plugin");
 
29
 
 
30
}
 
31
 
24
32
PluginAdapter * PluginAdapter::_default = 0;
25
33
 
26
34
#define MAXIMIZABLE (CompWindowActionMaximizeHorzMask & CompWindowActionMaximizeVertMask & CompWindowActionResizeMask)
608
616
  screen_width = screen.workArea().width ();
609
617
 
610
618
  if ((window->state () & MAXIMIZE_STATE) == MAXIMIZE_STATE) {
611
 
    g_debug ("MaximizeIfBigEnough: window mapped and already maximized, just undecorate");
 
619
    LOG_DEBUG(logger) << "window mapped and already maximized, just undecorate";
612
620
    Undecorate (window->id ());
613
621
    return;
614
622
  }
620
628
  if ((covering_part < _coverage_area_before_automaximize) || (covering_part > 1.0) ||
621
629
      (hints.flags & PMaxSize && (screen_width > hints.max_width || screen_height > hints.max_height)))
622
630
  {
623
 
    g_debug ("MaximizeIfBigEnough: %s window size doesn't fit", win_wmclass.c_str());
 
631
    LOG_DEBUG(logger) << win_wmclass << " window size doesn't fit";
624
632
    return;
625
633
  }
626
634