~mjuhasz/compiz-plugins-main/fix-834248

« back to all changes in this revision

Viewing changes to wall/src/wall.cpp

  • Committer: Miklos Juhasz
  • Date: 2012-02-23 20:04:43 UTC
  • Revision ID: juhasz.miklos.1@gmail.com-20120223200443-7ijo8n3r8bq6zz0f
Eliminate viewport wraparound. LP: #834248

Show diffs side-by-side

added added

removed removed

Lines of Context:
609
609
        CompPoint viewport;
610
610
 
611
611
        screen->viewportForGeometry (window->geometry (), viewport);
612
 
        dx       = viewport.x ();
613
 
        dy       = viewport.y ();
 
612
        dx       = abs(viewport.x () % screen->vpSize ().width ());
 
613
        dy       = abs(viewport.y () % screen->vpSize ().height ());
614
614
 
615
615
        dx -= screen->vp ().x ();
616
616
        dy -= screen->vp ().y ();