Merge lp:~nick-dedekind/unity-api/multi-monitor into lp:unity-api

Proposed by Michael Zanetti
Status: Needs review
Proposed branch: lp:~nick-dedekind/unity-api/multi-monitor
Merge into: lp:unity-api
Diff against target: 93 lines (+20/-26)
4 files modified
debian/changelog (+7/-0)
include/unity/shell/application/CMakeLists.txt (+3/-0)
include/unity/shell/application/MirMousePointerInterface.h (+2/-23)
include/unity/shell/application/MirPlatformCursor.h (+8/-3)
To merge this branch: bzr merge lp:~nick-dedekind/unity-api/multi-monitor
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Unity Team Pending
Review via email: mp+314837@code.launchpad.net

Commit message

API requirements for multiple screen support

Description of the change

Added register/unregisterMMouseCursors so that mouse cursor will not be overwritten during fleeting states when creating windows secondary screens.

related branches:
https://code.launchpad.net/~nick-dedekind/unity8/multi-monitor/+merge/314835
https://code.launchpad.net/~nick-dedekind/qtmir/multi-monitor/+merge/314836

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:250
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/150/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4366
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4394
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4227
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4227/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4227
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4227/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4227
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4227/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4227
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4227/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4227
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4227/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4227
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4227/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/150/rebuild

review: Approve (continuous-integration)
251. By Nick Dedekind

merged with trunk

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:251
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/163/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4662
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4690
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4513
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4513/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4513
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4513/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4513
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4513/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4513
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4513/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4513
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4513/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4513
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4513/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/163/rebuild

review: Approve (continuous-integration)
252. By Nick Dedekind

bump

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:252
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/177/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4897
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4925
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4733
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4733/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4733
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4733/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4733
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4733/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4733
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4733/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4733
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4733/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4733
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4733/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/177/rebuild

review: Approve (continuous-integration)

Unmerged revisions

252. By Nick Dedekind

bump

251. By Nick Dedekind

merged with trunk

250. By Nick Dedekind

fixed changelog

249. By Nick Dedekind

merged trunk

248. By Nick Dedekind

merged parent

247. By Nick Dedekind

version bump

246. By Nick Dedekind

merged with trunk

245. By Nick Dedekind

merged with parent

244. By Nick Dedekind

updated cursor interface

243. By Nick Dedekind

merged with trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2017-03-17 11:08:20 +0000
3+++ debian/changelog 2017-04-05 11:26:31 +0000
4@@ -1,3 +1,10 @@
5+unity-api (8.7ubuntu2) UNRELEASED; urgency=medium
6+
7+ [ Nick Dedekind ]
8+ * MirPlatformCursor - updates for multi-screen.
9+
10+ -- Nick Dedekind <nick.dedekind@canonical.com> Wed, 05 Apr 2017 12:26:08 +0100
11+
12 unity-api (8.6+17.04.20170317-0ubuntu1) zesty; urgency=medium
13
14 [ Michael Zanetti ]
15
16=== modified file 'include/unity/shell/application/CMakeLists.txt'
17--- include/unity/shell/application/CMakeLists.txt 2017-03-17 11:07:57 +0000
18+++ include/unity/shell/application/CMakeLists.txt 2017-04-05 11:26:31 +0000
19@@ -3,6 +3,9 @@
20 file(GLOB headers "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
21 file(GLOB internal_headers "${CMAKE_CURRENT_SOURCE_DIR}/internal/*.h")
22
23+add_custom_target(appheaders
24+ SOURCES ${headers} ${internal_headers})
25+
26 install(FILES ${headers} DESTINATION ${INCLUDE_INSTALL_DIR})
27
28 set(UNITY_API_LIB_HDRS ${UNITY_API_LIB_HDRS} ${headers} ${internal_headers} PARENT_SCOPE)
29
30=== modified file 'include/unity/shell/application/MirMousePointerInterface.h'
31--- include/unity/shell/application/MirMousePointerInterface.h 2016-05-18 20:51:23 +0000
32+++ include/unity/shell/application/MirMousePointerInterface.h 2017-04-05 11:26:31 +0000
33@@ -54,6 +54,8 @@
34
35 virtual void setThemeName(const QString &themeName) = 0;
36 virtual QString themeName() const = 0;
37+
38+ virtual void moveTo(const QPoint& position) = 0;
39 /// @endcond
40
41 /**
42@@ -70,29 +72,6 @@
43 void cursorNameChanged(QString name);
44 void themeNameChanged(QString name);
45 /// @endcond
46-
47-public Q_SLOTS:
48- /**
49- * @brief Handler for Mir mouse events
50- * The implementation should respond to Mir mouse events by moving itself along its parent
51- * area.
52- * This is called by Mir's platform cursor.
53- *
54- * Note that we get only relative mouse movement, since the mouse pointer position is defined
55- * by this very item. Ie., it's up to this class to decide whether or not it (the mouse pointer)
56- * should move (and how much) due to movement in a mouse device.
57- *
58- * @param movement Movement vector
59- */
60- virtual void handleMouseEvent(ulong timestamp, QPointF movement, Qt::MouseButtons buttons,
61- Qt::KeyboardModifiers modifiers) = 0;
62-
63- /**
64- * @brief Handler for Mir mouse wheel events
65- * This is called by Mir's platform cursor.
66- */
67- virtual void handleWheelEvent(ulong timestamp, QPoint angleDelta, Qt::KeyboardModifiers modifiers) = 0;
68-
69 };
70
71 #endif // MIR_MOUSE_POINTER_INTERFACE_H
72
73=== modified file 'include/unity/shell/application/MirPlatformCursor.h'
74--- include/unity/shell/application/MirPlatformCursor.h 2015-09-18 16:00:09 +0000
75+++ include/unity/shell/application/MirPlatformCursor.h 2017-04-05 11:26:31 +0000
76@@ -30,9 +30,14 @@
77 {
78 public:
79 /**
80- * @brief Set the QML mouse pointer that this platform cursor will talk to
81- */
82- virtual void setMousePointer(MirMousePointerInterface *mousePointer) = 0;
83+ * @brief Register a mouse pointer that this platform cursor will talk to
84+ */
85+ virtual void registerMousePointer(MirMousePointerInterface *mousePointer) = 0;
86+
87+ /**
88+ * @brief Unregister a mouse pointer that this platform cursor will talk to
89+ */
90+ virtual void unregisterMousePointer(MirMousePointerInterface *mousePointer) = 0;
91 };
92
93 #endif // MIR_PLATFORM_CURSOR_H

Subscribers

People subscribed via source and target branches

to all changes: