Adapt to KWindowSystem API change

This commit is contained in:
Nicolas Fella 2023-10-20 22:41:32 +02:00
parent 754b549f01
commit 2e3881b14d

View file

@ -5,6 +5,7 @@
*/ */
#include "windowsystem.h" #include "windowsystem.h"
#include <KWaylandExtras>
#include <KWindowSystem> #include <KWindowSystem>
#include <QGuiApplication> #include <QGuiApplication>
@ -186,7 +187,7 @@ void WindowSystem::requestToken(QWindow *win, uint32_t serial, const QString &ap
auto token = KWin::waylandServer()->xdgActivationIntegration()->requestPrivilegedToken(nullptr, seat->display()->serial(), seat, appId); auto token = KWin::waylandServer()->xdgActivationIntegration()->requestPrivilegedToken(nullptr, seat->display()->serial(), seat, appId);
// Ensure that xdgActivationTokenArrived is always emitted asynchronously // Ensure that xdgActivationTokenArrived is always emitted asynchronously
QTimer::singleShot(0, [serial, token] { QTimer::singleShot(0, [serial, token] {
Q_EMIT KWindowSystem::self()->xdgActivationTokenArrived(serial, token); Q_EMIT KWaylandExtras::self()->xdgActivationTokenArrived(serial, token);
}); });
} }