summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-03 23:15:58 +0100
committerDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-03 23:15:58 +0100
commit33ac212200f549ac26fdbbf6af68367bb01360de (patch)
tree6a852e7cd28688b9f7ca4c95262320e3c636b692 /src/screen.cpp
parentcb7d0ff4933deb565ec6c39fdbfd81d01241328f (diff)
downloadunity-window-decorator-33ac212200f549ac26fdbbf6af68367bb01360de.tar.gz
unity-window-decorator-33ac212200f549ac26fdbbf6af68367bb01360de.tar.bz2
Final fix for overlapping outputs.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index b47bd03..13734ff 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -1775,9 +1775,9 @@ PrivateScreen::updateOutputDevices ()
if (w->priv->fullscreenMonitorsSet)
w->priv->setFullscreenMonitors (NULL);
- for (unsigned int i = 0; i < nOutput; i++)
+ for (unsigned int i = 0; i < nOutput - 1; i++)
for (unsigned int j = i + 1; j < nOutput; j++)
- if (outputDevs[i].contains (outputDevs[j]))
+ if (outputDevs[i].intersects (outputDevs[j]))
hasOverlappingOutputs = true;
updateWorkarea ();