Bug 345852

Summary: ToolButton that got implicit focus when clicked has visual focus when its popup is re-opened next time
Product: [Frameworks and Libraries] libplasma Reporter: Antonis G. <gaantonio>
Component: componentsAssignee: Kai Uwe Broulik <kde>
Status: CONFIRMED ---    
Severity: minor CC: alexander.lohnau, bugseforuns, justin.zobel, nate, notmart, notuxius, plasma-bugs
Priority: NOR Keywords: wayland
Version: 5.91.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot on neon unstable

Description Antonis G. 2015-04-04 07:10:04 UTC
.

Reproducible: Always

Steps to Reproduce:
1. Close krunner from the close button.
2. open krunner

Actual Results:  
See screenshot: http://imgur.com/11OKebk
Comment 1 Vishesh Handa 2015-04-04 10:59:16 UTC
Confirmed.
Comment 2 Marco Martin 2015-04-08 14:19:40 UTC
may be a MouseArea problem: tracking down what depend the button state, boils down in QtQuickControls to
MouseArea.containsMouse
that i guess doesn't get reset if it was true at the moment the window closed
Comment 3 Marco Martin 2015-04-08 14:20:25 UTC
same thing if you close it with Esc while the mouse cursor is on a button
Comment 4 Alexander Mentyu 2018-02-14 15:41:33 UTC
Can reproduce in:

Plasma: 5.12.1
Apps: 17.12.2
Frameworks: 5.43.0
Qt: 5.10.0
Kernel: 4.14.19-1-MANJARO
OS: Netrunner Rolling
Comment 5 Alexander Mentyu 2018-02-14 15:47:16 UTC
Not sure - is this bug should be moved into krunner -> general category?
Comment 6 Alexander Lohnau 2020-06-20 14:10:08 UTC
Can not reproduce in 5.19 anymore.
Comment 7 Patrick Silva 2020-06-20 14:37:14 UTC
Created attachment 129550 [details]
screenshot on neon unstable

I can reproduce on Wayland session of neon unstable.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.72.0
Qt Version: 5.14.2
Comment 8 Alexander Lohnau 2020-06-20 15:30:09 UTC
Ah yes on Wayland. The issue is that the button still thinks it is hovered. But the hovered property is read-only so we can't just set it to false.

Can anyone help?
Comment 9 Justin Zobel 2020-11-22 03:55:20 UTC
Confirmed, wayland only issue, not affecting x11.
Comment 10 Nate Graham 2021-08-03 21:42:52 UTC
There is no longer a close button in KRunner and toolbutton focus has been fixed in genera; fixed by default now. :)
Comment 11 Patrick Silva 2021-08-17 10:38:50 UTC
I can reproduce this bug on Wayland session of neon unstable with the button to configure krunner.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 12 Nate Graham 2021-08-17 15:10:23 UTC
*** Bug 439149 has been marked as a duplicate of this bug. ***
Comment 13 Patrick Silva 2022-09-28 10:50:30 UTC
Can reproduce with Plasma 5.26 beta on Arch Linux.