From 52035f43b90738e2efb4fd7b482719c1ea458578 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 6 Apr 2022 00:33:21 +0200 Subject: [PATCH] xdgactivation: Demand attention when a process fails to resolve its token In xdg_activation_v1, if a process fails to negotiate activation, at least decorate it as demanding attention. This will give apps ways to indicate attention is required. It can can also help detect clients doing weird things. --- src/xdgactivationv1.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xdgactivationv1.cpp b/src/xdgactivationv1.cpp index 4479b9de41..0e4f2554e5 100644 --- a/src/xdgactivationv1.cpp +++ b/src/xdgactivationv1.cpp @@ -76,6 +76,7 @@ void XdgActivationV1Integration::activateSurface(SurfaceInterface *surface, cons if (!m_currentActivationToken || m_currentActivationToken->token != token) { qCDebug(KWIN_CORE) << "Refusing to activate " << client << " (provided token: " << token << ", current token:" << (m_currentActivationToken ? m_currentActivationToken->token : QStringLiteral("null")) << ")"; + client->demandAttention(); return; }