summaryrefslogtreecommitdiff
path: root/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.24.5-show-screenshare-notifier-more-prominently.patch
blob: 6b771bfede1e22b344c364916f43aa183f0d53fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From bbff465e6a005c737ee2e53eb5e072da006d9b4b Mon Sep 17 00:00:00 2001
From: Aleix Pol <aleixpol@kde.org>
Date: Fri, 13 May 2022 16:47:36 +0200
Subject: [PATCH] screenshare: Show the screen sharing notifier more
 prominently

Sets it as active, otherwise it got buried in the extended view of the
system tray.

BUG: 452980


(cherry picked from commit 3d61dae1fa334a9f3dadc505a038f75aa5846588)
---
 src/waylandintegration.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/waylandintegration.cpp b/src/waylandintegration.cpp
index e125578..b1b2d4d 100644
--- a/src/waylandintegration.cpp
+++ b/src/waylandintegration.cpp
@@ -292,6 +292,7 @@ bool WaylandIntegration::WaylandIntegrationPrivate::startStreaming(Screencasting
         }
         item->setOverlayIconByName("media-record");
         item->setToolTip(item->iconName(), item->title(), i18n("Press to cancel"));
+        item->setStatus(KStatusNotifierItem::Active);
         connect(item, &KStatusNotifierItem::activateRequested, stream, [=] {
             stopStreaming(nodeid);
             stream->deleteLater();
-- 
GitLab