summaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorErik Larsson <erik@ortogonal.com>2016-02-06 21:43:36 +0100
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2016-05-13 10:32:03 +0000
commited7505ecbd0ad211c9157fb4dd8d172ae2c72454 (patch)
treee7951c5af82e468d2543ad8e8d31d2eb758f9037 /src/imports
parent4db2396db5ea11c77bfbd9243f03d9b3fa400955 (diff)
Add popup support to QWaylandQuickCompositor with the wl shell.
When the shell surface emits the QWaylandShell::setPopup signal the QWaylandQuickWlShellSurfaceItem will move it self into its popup-parent, and also remove all transforms (rotation, scaling, etc.), our new parent already have the same transforms set. During the time a popup is active it installs a filter which handles the closing of popups if the user clicks outside the popup. This requires that the background item of the compositor accepts mouse press. Change-Id: I3e4c3c8728795d4b38a30a9bce178dc315643de2 Reviewed-by: Johan Helsing <johan.helsing@qt.io> Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com> Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/compositor/qwaylandmousetracker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/compositor/qwaylandmousetracker.cpp b/src/imports/compositor/qwaylandmousetracker.cpp
index e54321f14..a77d6b1a0 100644
--- a/src/imports/compositor/qwaylandmousetracker.cpp
+++ b/src/imports/compositor/qwaylandmousetracker.cpp
@@ -87,6 +87,7 @@ QWaylandMouseTracker::QWaylandMouseTracker(QQuickItem *parent)
Q_D(QWaylandMouseTracker);
setFiltersChildMouseEvents(true);
setAcceptHoverEvents(true);
+ setAcceptedMouseButtons(Qt::AllButtons);
setCursor(QCursor(d->cursorPixmap));
}