https://bugs.kde.org/show_bug.cgi?id=477299
Bug ID: 477299 Summary: Support multiline actions in StatusNotifierItems Classification: Plasma Product: plasmashell Version: 5.27.9 Platform: openSUSE OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: System Tray Assignee: plasma-b...@kde.org Reporter: bizy...@zoho.com CC: mate...@gmail.com Target Milestone: 1.0 SUMMARY Currently, system tray menus with two-line action labels are displayed incorrectly (see the attached minimal program and a screenshot of it). However, I couldn't find anywhere in the spec that actions must not contain newlines. On X11, this is somewhat alleviated by apps drawing their own menus for tray icons, and GTK has no issues with multiline menu items. On Wayland, however, all the tray menus have to be displayed through SNI and rendered by Plasma. Currently, Plasma uses a simple QMenu for that, and QMenus don't support multiline actions natively (or maybe it's up to the widget style to support them, and Breeze doesn't). Since there are programs out there that rely on multiline action labels in their system tray menus, and the spec seems to be permissive in this regard, I think Plasma should ensure that such menus are displayed correctly, even if it requires using a custom component. If that is impossible, Plasma should at least replace newlines with spaces to avoid the obvious rendering defect. STEPS TO REPRODUCE Run the attached script (PyQt5). OBSERVED RESULT See the attached screenshot. EXPECTED RESULT Multiline action names in system tray menus exposed via SNI are displayed correctly. -- You are receiving this mail because: You are watching all bug changes.