~brandontschaefer/compiz/lp1002246_fix

« back to all changes in this revision

Viewing changes to plugins/wobbly/src/wobbly.cpp

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2012-12-07 14:51:17 UTC
  • mfrom: (3513.2.5 constify-CompWindow)
  • Revision ID: tarmac-20121207145117-x4o7y97ol1t5fm0a
Const'ify the methods of CompWindow where possible. I think this covers all
candidates except for:
   1. sizeHints() - we need to fix LP: #925867 first.
   2. other methods that return references to ints, because no corresponding
      "set" method exists yet.
As those are logic changes, I would prefer to deal with them separately.

Approved by PS Jenkins bot, Sam Spilsbury.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1289
1289
    if (window->width () == 1 && window->height () == 1)
1290
1290
        return false;
1291
1291
 
1292
 
    CompWindow::Geometry &geom = window->geometry ();
 
1292
    const CompWindow::Geometry &geom = window->geometry ();
1293
1293
 
1294
1294
    /* avoid fullscreen windows */
1295
1295
    if (geom.x () <= 0 &&