Merge lp:~unity-2d-team/unity-2d/shell-bounding-shaping into lp:~unity-2d-team/unity-2d/unity-2d-shell

Proposed by Michał Sawicz
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 953
Merge reported by: Albert Astals Cid
Merged at revision: not available
Proposed branch: lp:~unity-2d-team/unity-2d/shell-bounding-shaping
Merge into: lp:~unity-2d-team/unity-2d/unity-2d-shell
Diff against target: 39 lines (+9/-3)
2 files modified
libunity-2d-private/src/inputshapemanager.cpp (+1/-1)
shell/Shell.qml (+8/-2)
To merge this branch: bzr merge lp:~unity-2d-team/unity-2d/shell-bounding-shaping
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
Michał Sawicz Needs Fixing
Florian Boucault Pending
Review via email: mp+91454@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) wrote :

The input shaping tests need to be adapted / extended to take that change into account.

review: Needs Fixing
Revision history for this message
Albert Astals Cid (aacid) wrote :

Works

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libunity-2d-private/src/inputshapemanager.cpp'
2--- libunity-2d-private/src/inputshapemanager.cpp 2012-02-01 14:59:15 +0000
3+++ libunity-2d-private/src/inputshapemanager.cpp 2012-02-03 16:25:42 +0000
4@@ -39,7 +39,7 @@
5 // pixmap created from the mask bitmap. However for some reason I wasn't able to figure out yet
6 // I get a lot of warnings when calling QBitmap::handle, so for now I'm passing a region as a
7 // workaround.
8- XShapeCombineRegion(QX11Info::display(), m_target->effectiveWinId(), ShapeInput,
9+ XShapeCombineRegion(QX11Info::display(), m_target->effectiveWinId(), ShapeBounding,
10 0, 0, QRegion(inputShape).handle(), ShapeSet);
11 }
12
13
14=== modified file 'shell/Shell.qml'
15--- shell/Shell.qml 2012-01-30 14:31:40 +0000
16+++ shell/Shell.qml 2012-02-03 16:25:42 +0000
17@@ -121,14 +121,20 @@
18 InputShapeRectangle {
19 // Prevent the launcher mask to ever go to negative values or be less than 1 pixel
20 // (to preserve the autohide/intellihide edge detection)
21+ // FIXME: this results in a 1px wide white rectangle on the launcher edge, we should switch
22+ // to cpp-based edge detection, and later XFixes barriers to get rid of that completely
23 rectangle: Qt.rect(0, launcherLoader.y,
24- launcherLoader.visibilityController.shown ? launcherLoader.width : 1,
25+ -launcherLoader.x < launcherLoader.width ? launcherLoader.x + launcherLoader.width : 1,
26 launcherLoader.height)
27 enabled: launcherLoader.status == Loader.Ready
28 }
29
30 InputShapeRectangle {
31- rectangle: Qt.rect(dashLoader.x, dashLoader.y, dashLoader.width, dashLoader.height)
32+ rectangle: if (screen.isCompositingManagerRunning) {
33+ Qt.rect(dashLoader.x, dashLoader.y, dashLoader.width, dashLoader.height)
34+ } else {
35+ Qt.rect(dashLoader.x, dashLoader.y, dashLoader.width - 7, dashLoader.height - 9)
36+ }
37 enabled: dashLoader.status == Loader.Ready && dashLoader.item.active
38
39 InputShapeMask {

Subscribers

People subscribed via source and target branches

to all changes: