Created attachment 179752 [details] screenshot STEPS TO REPRODUCE 1. open OBS Studio 2. click on the red circle icon in the system tray 3. OBSERVED RESULT the tiny window seen in the attached screenshot opens EXPECTED RESULT no window opens and the screen sharing stops SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.3.3 KDE Frameworks Version: 6.12.0 Qt Version: 6.8.2 Graphics Platform: Wayland
Looks like this menu doesn't have a parent set properly, so it appears as a window. This is an app bug, but I thought there was a workaround or fix in Qt, and OBS is a QT-based app. Is your OBS from distro packages, and therefore using the system Qt version?
My OBS is installed from Arch repos. I can also reproduce with Kooha, a gtk4 screen recorder.
This tray item isn't from OBS, it's from our xdg desktop portal. This won't be a bug in there either though; plasmashell is responsible for showing system tray menus (of Wayland apps)
Can reproduce it, FWIW.
> This tray item isn't from OBS, it's from our xdg desktop portal. This won't be a bug in there either though; plasmashell is responsible for showing system tray menus (of Wayland apps) That is true and works on right click. But what the portal does is it also wants to show on left click so it shows it itself. This is fixable by making "ItemIsMenu" settable in Kstatusnotifieritem, then plasmashell will also show the menu on left click. Or we come up with a better pattern, as a single item menu might not be the best anyway?
(In reply to David Redondo from comment #5) > This is fixable by making "ItemIsMenu" settable in Kstatusnotifieritem, then > plasmashell will also show the menu on left click. Or we come up with a > better pattern, as a single item menu might not be the best anyway? I think that got implemented in https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5332, right?
Yes but kstatusnotifieritem does not allow "ItemisMenu" at the moment https://invent.kde.org/frameworks/kstatusnotifieritem/-/blob/master/src/kstatusnotifieritemdbus_p.cpp?ref_type=heads#L159
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kstatusnotifieritem/-/merge_requests/37
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/375
Git commit 80331812322720190141ee686bad805b757d78c4 by David Redondo. Committed on 09/04/2025 at 14:23. Pushed by davidre into branch 'master'. Add KStatusNotifierItem::isMenu this allows modifying the ItemIsMenu hint from the spec. M +10 -0 src/kstatusnotifieritem.cpp M +17 -0 src/kstatusnotifieritem.h M +1 -1 src/kstatusnotifieritemdbus_p.cpp M +1 -0 src/kstatusnotifieritemprivate_p.h https://invent.kde.org/frameworks/kstatusnotifieritem/-/commit/80331812322720190141ee686bad805b757d78c4
Git commit 7b6d1a6538118b52e2159206edf9d3af3c89c958 by David Redondo. Committed on 10/04/2025 at 07:24. Pushed by davidre into branch 'master'. screencast: Set KStatusNotifierItem::isMenu This way plasmashell will show the menu on left click and we dont have to do it ourselves. FIXED-IN: 6.4 M +1 -1 src/session.cpp https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/7b6d1a6538118b52e2159206edf9d3af3c89c958