Bug 393061 - Focus not transferred properly to child windows in sidebar view
Summary: Focus not transferred properly to child windows in sidebar view
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: sidebarview (show other bugs)
Version: 5.12.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-12 19:18 UTC by wazhai
Modified: 2019-09-15 21:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.17.0


Attachments
video demonstration (1.03 MB, video/mp4)
2018-08-07 13:23 UTC, wazhai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wazhai 2018-04-12 19:18:19 UTC
On the main page of System Settings in Sidebar View mode so that the top level items of the sidebar are visible, when opening a child window such as About KDE or Configuration, the focus isn't transferred properly the that child window. The title bar of the child window is highlighted as if it had focus, but mousing over items in that window such as tabs or links doesn't produce the expected feedback and mousing over the top level items of the sidebar view on the left produces tooltips that are drawn over the child window. Clicking once inside the child window transfers focus properly and the problems no longer occur for that specific child window.

Steps to reproduce:
1. Open System Settings in Sidebar View
2. Open About KDE from the hamburger menu
3. Do not click inside the child window, but you may drag it by the title bar
4. Mousing over the top level sidebar items through the child window results in tooltips
5. Mousing over the contents of child window doesn't produce the expected visual feedback
Comment 1 wazhai 2018-04-12 19:28:59 UTC
A likely related side effect of this bug is this scenario:

1. Open System Settings in Sidebar View as a window (not maximized)
2. Open About KDE from the hamburger menu
3. Do not click inside the child window and close it using the title bar close button
4. Mouse over exactly one top level sidebar item and then move the mouse pointer off to the left out of the System Settings window 
5. The tooltip stays open and even clicking to change focus to another program doesn't dismiss it
Comment 2 Marco Martin 2018-07-20 14:43:26 UTC
can't seem to reproduce on master, child windows automatically get focus.
perhaps some custom focus stealing prevention in kwin?
Comment 3 wazhai 2018-08-07 13:23:24 UTC
Created attachment 114355 [details]
video demonstration

Unfortunately, I am unable to test with the master branch, but my system has since been updated to newer versions and it still occurs at random very often but not always. I don't use any kind of special focus prevention rules: the policy is "click to focus", low stealing prevention and click raises active window is enabled.

I have added an attachment video to demonstrate this odd issue if it wasn't clear what is happening on my end. Here, it doesn't happen the first time, but does the second and I try to show the effects. When I click on the child window, it starts behaving normally.

Plasma: 5.13.3
KDE frameworks: 5.48.0
Qt: 5.10.1
Comment 4 Nate Graham 2019-09-15 21:58:10 UTC
Confirmed fixed now.