Bug 452209 - Window painting issues on X11 when focusing a window by clicking on a ToolButton that opens a menu
Summary: Window painting issues on X11 when focusing a window by clicking on a ToolBut...
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (other bugs)
Version First Reported In: 5.25.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: X11-only
Depends on:
Blocks:
 
Reported: 2022-04-03 05:25 UTC by Oliver Beard
Modified: 2025-02-24 17:58 UTC (History)
3 users (show)

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


Attachments
The window being painted focused despite being unfocused from the new menu opened. (85.36 KB, image/png)
2022-04-03 05:25 UTC, Oliver Beard
Details
The window being painted unfocused on X11 when opening the menu. (63.07 KB, image/png)
2022-04-03 05:26 UTC, Oliver Beard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Beard 2022-04-03 05:25:00 UTC
Created attachment 147918 [details]
The window being painted focused despite being unfocused from the new menu opened.

SUMMARY
With X11, when pressing the menu button in System Settings to open the menu, the application area of the window is painted unfocused whilst the application is still focused. This does not occur on Wayland.

When opening a new window, such as "About KDE" from this menu, the application is painted focused. When selecting the application and then the new window to force it to repaint, the issue persists. When selecting the application and then a different window (such as the desktop), the application area is correctly painted as focused.

On Wayland, when opening a new window, the button stays selected and a tooltip will appear despite the new window. This does not occur on X11. This also occurs in Dolphin (though the button has no tooltip in Dolphin). Dolphin correctly paints itself, however. This issue with the button remaining selected would appear to be a distinct and more general bug, so I intend to file a separate bug and will add it under see also.

Info Center behaves identically.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Oliver Beard 2022-04-03 05:26:31 UTC
Created attachment 147919 [details]
The window being painted unfocused on X11 when opening the menu.
Comment 2 Oliver Beard 2022-04-03 05:37:17 UTC
Additionally, the menu button cannot be pressed in Wayland when the window is unfocused. It simply focuses the window and does not register the click on the button. Info Center is the same.
Comment 3 Nate Graham 2022-04-04 21:31:15 UTC
Can reproduce. It's a Breeze issue IIRC.
Comment 4 TraceyC 2025-02-24 17:58:30 UTC
Adding the x11-only keyword