Bug 497990 - System tray icons of WINE applications don't work with fractional display scale
Summary: System tray icons of WINE applications don't work with fractional display scale
Status: CLOSED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (show other bugs)
Version: 6.2.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-28 16:46 UTC by Pavel Dobiáš
Modified: 2025-02-18 09:32 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Demonstration of the issue (1.48 MB, video/webm)
2024-12-28 16:46 UTC, Pavel Dobiáš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Dobiáš 2024-12-28 16:46:04 UTC
Created attachment 176932 [details]
Demonstration of the issue

SUMMARY
Applications running using WINE (e.g. Ubisoft Connect) with system tray icons don't have them working. Clicking with left or right mouse button doesn't do anything, however only when fractional scale is applied. With 100% display scale the icon reacts without any problems (with Ubisoft Connect - right click opens menu and left click brings forward app window). I'm running the app using Steam's Proton, but it happens regardless of WINE version, tested with Bottles and other runners too.

STEPS TO REPRODUCE
1. Set fractional display scale (e.g. 125%) in Display Configuration of Plasma.
2. Install an app with system tray icon in a WINE/Proton prefix (e.g. Ubisoft Connect).
3. Run the app and wait for it to load a system tray icon.
4. Try left or right clicking the icon.

OBSERVED RESULT
The icon shows click animation, but doesn't react with the intended application's behaviour.

EXPECTED RESULT
The icon should react with its intended behaviour (e.g. open a menu or the app itself).

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.6-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Display: 1920x1080@125%
Comment 1 Nate Graham 2025-01-04 00:37:00 UTC
This is likely an issue in WINE itself, but given how much WINE-run software is proprietary or abandonware, we may want to see if there's anything we can do about it ourselves.
Comment 2 Harald Sitter 2025-01-09 12:54:07 UTC
Cannot reproduce with proton experimental and Plasma master.

1. run Ubi
2. minimize it
3. left click
4. Ubi window gets raised 
5. right click
6. context menu gets shown

If I am not mistaken the entire tray icon is managed by wine though, certainly the action portion, so I am not sure we can actually do anything about defects there.
Comment 3 Nate Graham 2025-01-09 16:08:47 UTC
If it can't be reproduced with Plasma 6.3 and proton experimental, seems this issue will go away on its own shortly. Thanks for the investigation, Harald!
Comment 4 Pavel Dobiáš 2025-02-13 16:46:31 UTC
I tested the latest release of plasma 6.3 once again with Ubisoft Launcher and Proton Experimental and the issue persists in the exact same way. It's still linked to fractional display scale, working just fine on integer scales.
Comment 6 Pavel Dobiáš 2025-02-18 09:32:56 UTC
(In reply to Nate Graham from comment #5)
> See
> https://community.kde.org/Get_Involved/
> Issue_Reporting#Understand_what_the_resolution_statuses_mean.

Thanks for directing me, I apologise for mislabeling the report.