Merge lp:~3v1n0/unity/use-new-compregion into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Andrea Azzarone
Approved revision: no longer in the source branch.
Merged at revision: 4268
Proposed branch: lp:~3v1n0/unity/use-new-compregion
Merge into: lp:unity
Diff against target: 53 lines (+6/-4)
4 files modified
debian/control (+1/-1)
decorations/DecoratedWindow.cpp (+3/-1)
plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp (+1/-1)
plugins/unityshell/src/unityshell.cpp (+1/-1)
To merge this branch: bzr merge lp:~3v1n0/unity/use-new-compregion
Reviewer Review Type Date Requested Status
Andrea Azzarone (community) Approve
Review via email: mp+338430@code.launchpad.net

Commit message

Unity: use new definition of infinite CompRegion's

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2017-09-22 03:01:25 +0000
3+++ debian/control 2018-02-21 14:48:40 +0000
4@@ -3,7 +3,7 @@
5 Priority: optional
6 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
7 Build-Depends: cmake,
8- compiz-dev (>= 1:0.9.13.1+17.10.20170829),
9+ compiz-dev (>= 1:0.9.13.1+18.04.20180221),
10 debhelper (>= 9.0.0~),
11 dbus-test-runner,
12 dbus-x11,
13
14=== modified file 'decorations/DecoratedWindow.cpp'
15--- decorations/DecoratedWindow.cpp 2016-08-29 17:43:07 +0000
16+++ decorations/DecoratedWindow.cpp 2018-02-21 14:48:40 +0000
17@@ -816,7 +816,9 @@
18 return;
19 }
20
21- auto const& clip_region = (mask & PAINT_WINDOW_TRANSFORMED_MASK) ? infiniteRegion : region;
22+ auto const& clip_region = (mask & PAINT_WINDOW_TRANSFORMED_MASK) ?
23+ CompRegion::infinite() : region;
24+
25 mask |= PAINT_WINDOW_BLEND_MASK;
26
27 if (win_->alpha() || attrib.opacity != OPAQUE)
28
29=== modified file 'plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp'
30--- plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp 2013-11-17 18:12:54 +0000
31+++ plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp 2018-02-21 14:48:40 +0000
32@@ -480,7 +480,7 @@
33 matl.push_back(mat);
34
35 if (mask & PAINT_WINDOW_TRANSFORMED_MASK)
36- paintRegion = infiniteRegion;
37+ paintRegion = CompRegion::infinite();
38
39 /* Now allow plugins to mess with the geometry of our
40 * dim (so we get a nice render for things like
41
42=== modified file 'plugins/unityshell/src/unityshell.cpp'
43--- plugins/unityshell/src/unityshell.cpp 2017-09-19 18:09:41 +0000
44+++ plugins/unityshell/src/unityshell.cpp 2018-02-21 14:48:40 +0000
45@@ -979,7 +979,7 @@
46 /* force the use of the core functions */
47 uTrayWindow->gWindow->glDrawSetCurrentIndex (MAXSHORT);
48 uTrayWindow->gWindow->glAddGeometrySetCurrentIndex ( MAXSHORT);
49- uTrayWindow->gWindow->glDraw (oTransform, attrib, infiniteRegion,
50+ uTrayWindow->gWindow->glDraw (oTransform, attrib, CompRegion::infinite (),
51 PAINT_WINDOW_TRANSFORMED_MASK |
52 PAINT_WINDOW_BLEND_MASK |
53 PAINT_WINDOW_ON_TRANSFORMED_SCREEN_MASK);