From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- ...win-5.24.4-xdgactivation-demand-attention.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 kde-plasma/kwin/files/kwin-5.24.4-xdgactivation-demand-attention.patch (limited to 'kde-plasma/kwin/files/kwin-5.24.4-xdgactivation-demand-attention.patch') diff --git a/kde-plasma/kwin/files/kwin-5.24.4-xdgactivation-demand-attention.patch b/kde-plasma/kwin/files/kwin-5.24.4-xdgactivation-demand-attention.patch new file mode 100644 index 000000000000..8efa6b637222 --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.24.4-xdgactivation-demand-attention.patch @@ -0,0 +1,32 @@ +From 5390a4978f3a3903ede15ecd94a750b37931fbd2 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. + + +(cherry picked from commit 52035f43b90738e2efb4fd7b482719c1ea458578) +--- + src/xdgactivationv1.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/xdgactivationv1.cpp b/src/xdgactivationv1.cpp +index e2270a3393..97f8575c29 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; + } + +-- +GitLab + -- cgit v1.2.3