summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-02-21 15:37:20 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-02-21 15:37:20 +0100
commitef04f621e61076ef317e08b941b0e1a5d7cae937 (patch)
tree072995ab8cffd4d9c817d10d9f08dc3a504d1d63 /plugins
parent008bf57d7e80a7859881afd38179dc6be3be8116 (diff)
Unity: use new definition of infinite CompRegion's
Fixes LP: #1749957 (bzr r4265.3.1)
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 0ecff9515..1c49cdd03 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);