KWaylandExtras Class
A collection of functions to do Wayland things. More...
Header: | #include <KWaylandExtras> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KWindowSystem) target_link_libraries(mytarget PRIVATE KF6::KWindowSystem) |
Since: | 6.0 |
Inherits: | QObject |
Signals
(since 6.0) void | windowExported(QWindow *window, const QString &handle) |
void | xdgActivationTokenArrived(int serial, const QString &token) |
Static Public Members
(since 6.0) void | exportWindow(QWindow *window) |
quint32 | lastInputSerial(QWindow *window) |
void | requestXdgActivationToken(QWindow *win, uint32_t serial, const QString &app_id) |
KWaylandExtras * | self() |
(since 6.0) void | unexportWindow(QWindow *window) |
Detailed Description
Member Function Documentation
[static invokable, since 6.0]
void KWaylandExtras::exportWindow(QWindow *window)
Requests to export the given window using xdg_foreign_v2.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
This function was introduced in 6.0.
See also windowExported.
[static invokable]
quint32 KWaylandExtras::lastInputSerial(QWindow *window)
Offers the seat's current serial for the given window.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[static invokable]
void KWaylandExtras::requestXdgActivationToken(QWindow *win, uint32_t serial, const QString &app_id)
Requests an xdg_activation_v1 token for a specific window win with the given app_id.
serial Serial of the event that triggered the request.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
See also lastInputSerial.
[static]
KWaylandExtras *KWaylandExtras::self()
[static invokable, since 6.0]
void KWaylandExtras::unexportWindow(QWindow *window)
Unexports the window previously exported using xdg_foreign_v2.
Asks the compositor to revoke the handle.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
This function was introduced in 6.0.
[signal, since 6.0]
void KWaylandExtras::windowExported(QWindow *window, const QString &handle)
The handle of the given window to pass to the client.
This function was introduced in 6.0.
See also exportWindow.
[signal]
void KWaylandExtras::xdgActivationTokenArrived(int serial, const QString &token)
Activation token to pass to the client.
serial Serial of the event that triggered the request
See also requestXdgActivationToken.