diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2022-10-23 00:01:33 +0400 |
---|---|---|
committer | Ilya Fedin <fedin-ilja2010@ya.ru> | 2022-10-23 17:19:05 +0400 |
commit | f3a6f3c502536c0bac7f845d8f1e3179aa1a0365 (patch) | |
tree | aecacfce845c0a646aa5e3cc91d228483a7ba1e4 /src/client/qwaylandwindow.cpp | |
parent | 47ebd2ae5e40f5d1228edd3a35d0272dcf545585 (diff) | |
download | qtwayland-f3a6f3c502536c0bac7f845d8f1e3179aa1a0365.tar.gz |
Implement window alert with xdg-activation
This is implemented by not specifying serial, as mentioned in
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/9#note_854977
Tested on KDE Plasma
Change-Id: I4ef0975040bbce581b615b0318f90601e080235c
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/client/qwaylandwindow.cpp')
-rw-r--r-- | src/client/qwaylandwindow.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 4fd012de..c8d5121f 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -502,6 +502,20 @@ void QWaylandWindow::setMask(const QRegion &mask) mSurface->commit(); } +void QWaylandWindow::setAlertState(bool enabled) +{ + if (mShellSurface) + mShellSurface->setAlertState(enabled); +} + +bool QWaylandWindow::isAlertState() const +{ + if (mShellSurface) + return mShellSurface->isAlertState(); + + return false; +} + void QWaylandWindow::applyConfigureWhenPossible() { QMutexLocker resizeLocker(&mResizeLock); |