Bug 452209

Summary: Window painting issues on X11 when focusing a window by clicking on a ToolButton that opens a menu
Product: [Plasma] Breeze Reporter: Oliver Beard <olib141>
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate, noahadvs, sayan
Priority: NOR Keywords: X11-only
Version First Reported In: 5.25.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The window being painted focused despite being unfocused from the new menu opened.
The window being painted unfocused on X11 when opening the menu.

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