~smspillaz/compiz-core/compiz-core.fix_939228

Viewing all changes in revision 3111.

  • Committer: smspillaz
  • Date: 2012-04-24 09:19:39 UTC
  • Revision ID: sam.spilsbury@canonical.com-20120424091939-xu63eefd1vx7she1
Don't return a negative value for CompScreen::viewportForGeometry

Fix LP#939288 - If a window was partially on a viewport which was the last
one in its row or column, and we were on the viewport on the opposite side
of that row or column, compiz would work backwards to find the position
of the window (which would be negative) and return a negative viewport
position. This caused plugins like wall to behave strangely 

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: