summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2018-02-21 15:27:05 +0000
committerBileto Bot <ci-train-bot@canonical.com>2018-02-21 15:27:05 +0000
commit1c79b6c320c8605bf26c3eef9e08f47d561db606 (patch)
tree173d32667cbd41afffa531a3e1b5fe833c717e98 /plugins
parent8cfd8242218d4f3ccba88b81921fa46e67df11b5 (diff)
parentef04f621e61076ef317e08b941b0e1a5d7cae937 (diff)
Unity: use new definition of infinite CompRegion's (LP: #1749957)
Approved by: Andrea Azzarone (bzr r4268)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp2
-rw-r--r--plugins/unityshell/src/unityshell.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp b/plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp
index 08b811e02..fb78bd9d8 100644
--- a/plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp
+++ b/plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp
@@ -480,7 +480,7 @@ UnityMTGrabHandlesWindow::glDraw(const GLMatrix& transform,
matl.push_back(mat);
if (mask & PAINT_WINDOW_TRANSFORMED_MASK)
- paintRegion = infiniteRegion;
+ paintRegion = CompRegion::infinite();
/* Now allow plugins to mess with the geometry of our
* dim (so we get a nice render for things like
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 4e91d434f..ff739f6d6 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -979,7 +979,7 @@ void UnityScreen::paintOutput()
/* force the use of the core functions */
uTrayWindow->gWindow->glDrawSetCurrentIndex (MAXSHORT);
uTrayWindow->gWindow->glAddGeometrySetCurrentIndex ( MAXSHORT);
- uTrayWindow->gWindow->glDraw (oTransform, attrib, infiniteRegion,
+ uTrayWindow->gWindow->glDraw (oTransform, attrib, CompRegion::infinite (),
PAINT_WINDOW_TRANSFORMED_MASK |
PAINT_WINDOW_BLEND_MASK |
PAINT_WINDOW_ON_TRANSFORMED_SCREEN_MASK);