summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-03 22:55:02 +0100
committerDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-03 22:55:02 +0100
commitcf9f764c50945b70b06ae97d5b10ac71e76dd5bf (patch)
tree989f019f0f518df2ada3184f0df7802444f33dc2 /src/screen.cpp
parent80ff16c42e238d4ce8be37fc47c4a3dcb711c1f3 (diff)
downloadunity-window-decorator-cf9f764c50945b70b06ae97d5b10ac71e76dd5bf.tar.gz
unity-window-decorator-cf9f764c50945b70b06ae97d5b10ac71e76dd5bf.tar.bz2
Check for overlapping Outputs.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index d8f5bad..ddc2a65 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -1774,6 +1774,12 @@ PrivateScreen::updateOutputDevices ()
foreach (CompWindow *w, windows)
if (w->priv->fullscreenMonitorsSet)
w->priv->setFullscreenMonitors (NULL);
+
+ CompRegion region;
+ for (unsigned int i = 0; i < nOutput; i++)
+ for (unsigned int j = i + 1; j < nOutput; j++)
+ if (outputDevs[i].contains (outputDevs[j]))
+ hasOverlappingOutputs = true;
updateWorkarea ();