~compiz-team/compiz/0.9.11

« back to all changes in this revision

Viewing changes to src/window.cpp

  • Committer: CI Train Bot
  • Author(s): Michael Thayer
  • Date: 2015-01-22 14:51:27 UTC
  • mfrom: (3866.2.1 0.9.11)
  • Revision ID: ci-train-bot@canonical.com-20150122145127-u22qaojnloenpd5p
use correct screen extents for multi-monitor positioning of fullscreen windows (lp: #1353675) Fixes: #1353675
Approved by: Marco Trevisan (Treviño)

Show diffs side-by-side

added added

removed removed

Lines of Context:
467
467
    {
468
468
        CompRect fsRect (screen->outputDevs ()[monitors->left].x1 (),
469
469
                         screen->outputDevs ()[monitors->top].y1 (),
470
 
                         screen->outputDevs ()[monitors->right].x2 (),
471
 
                         screen->outputDevs ()[monitors->bottom].y2 ());
 
470
                         screen->outputDevs ()[monitors->right].x2 () -
 
471
                                screen->outputDevs ()[monitors->left].x1 (),
 
472
                         screen->outputDevs ()[monitors->bottom].y2 () -
 
473
                                screen->outputDevs ()[monitors->top].y1 ());
472
474
 
473
475
        if (fsRect.x1 () < fsRect.x2 () && fsRect.y1 () < fsRect.y2 ())
474
476
        {