From ef04f621e61076ef317e08b941b0e1a5d7cae937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 21 Feb 2018 15:37:20 +0100 Subject: Unity: use new definition of infinite CompRegion's Fixes LP: #1749957 (bzr r4265.3.1) --- plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp | 2 +- plugins/unityshell/src/unityshell.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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); -- cgit v1.2.3