diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-05-09 16:07:36 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-05-10 12:47:30 +0000 |
commit | 14d37a53a674d7dbef32e718ae391e265fad5fac (patch) | |
tree | b15dd0638e44dc92b5a39b62f15caf21d51b7d97 /src/compositor/extensions/qwaylandxdgshell.cpp | |
parent | 5ec182df699041699f514d164a161c299fde5d19 (diff) |
Add QWaylandXdgPopup::sendPopupDone
...and one for QWaylandXdgPopupV6.
We already have similar API for xdg-shell v5.
[ChangeLog][Compositor] Added QWaylandXdgPopup::sendPopupDone, which will
dismiss a popup.
Fixes: QTBUG-75652
Change-Id: I9c36ee38ee606016587ab88d5b015f29594019e1
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshell.cpp')
-rw-r--r-- | src/compositor/extensions/qwaylandxdgshell.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshell.cpp b/src/compositor/extensions/qwaylandxdgshell.cpp index eb7b958b4..f06fd7934 100644 --- a/src/compositor/extensions/qwaylandxdgshell.cpp +++ b/src/compositor/extensions/qwaylandxdgshell.cpp @@ -1871,6 +1871,26 @@ uint QWaylandXdgPopup::sendConfigure(const QRect &geometry) } /*! + * \qmlmethod void QtWaylandCompositor::XdgPopup::sendPopupDone() + * \since 5.14 + * + * Dismiss the popup. According to the \c xdg-shell protocol this should make the + * client destroy the popup. + */ + +/*! + * \since 5.14 + * + * Dismiss the popup. According to the \c xdg-shell protocol this should make the + * client destroy the popup. + */ +void QWaylandXdgPopup::sendPopupDone() +{ + Q_D(QWaylandXdgPopup); + d->send_popup_done(); +} + +/*! * Returns the surface role for the QWaylandPopup. */ QWaylandSurfaceRole *QWaylandXdgPopup::role() |