~compiz-team/compiz/0.9.9

Viewing all changes in revision 3471.

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2012-11-16 05:30:47 UTC
  • mfrom: (3465.2.13 fix-751605)
  • Revision ID: tarmac-20121116053047-fyopr088n9q0m915
Prevent windows from maximizing on the wrong monitor (LP: #751605)

This fixes two causes I have found:
  1. outputDeviceForGeometry was wrapping to the wrong monitor (back to the
     top or left) if a window was mostly off the bottom/right of the screen.
  2. Even when outputDeviceForGeometry returned the correct output,
     PrivateWindow::addWindowSizeChanges was sometimes changing it to an
     incorrect output in the case where the old size of a window exceeds
     the dimensions of the smaller monitor you're trying to maximize it on.
. Fixes: https://bugs.launchpad.net/bugs/751605.

Approved by Sam Spilsbury, PS Jenkins bot, MC Return.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: