Summary: | On X11, minimizing Dolphin and then Alt-Tabbing back in focuses the Places panel instead of the files view | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Riku <riku> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dolphin-bugs-null, felixernst, john.kizer |
Priority: | NOR | ||
Version First Reported In: | 24.12.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/system/dolphin/-/commit/a57ffc9f1ece7cf196691ec878383bcc20903da7 | Version Fixed In: | 24.12.2 |
Sentry Crash Report: | |||
Attachments: | Demonstration |
Description
Riku
2024-12-23 00:53:18 UTC
Hi - I can't reproduce the observed result using those steps on my Fedora KDE 41 system. Are you able to attach a screen recording (which can be created using Spectacle) of the behavior occurring on your device, to help folks see the specific timing and Dolphin layout involved? Could you also check to see if this behavior occurs on a Wayland session? Thanks! Created attachment 177027 [details]
Demonstration
Looks like this only happens on X11.
Thanks! I wonder if I caused this with https://invent.kde.org/system/dolphin/-/commit/f220e3b0783a24a6c7195f170297cf4b12a29d85. The places panel might receive spontaneous visibility changed events and interpret those as being actively toggled visible. A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/882 Git commit bfeeb46c3ae0b6e933b0381cc10eebad38a2b8c0 by Felix Ernst, on behalf of Felix Ernst. Committed on 06/01/2025 at 15:09. Pushed by felixernst into branch 'master'. Fix focus changing when unminimising on X11 In f220e3b0783a24a6c7195f170297cf4b12a29d85 I made the keyboard focus move to the places and terminal panel whenever they are toggled visible. Unfortunately the QDockWidget::visibilityChanged() signal is also emitted (at least on X11) simply when the window containing that panel is minimized or restored. This commit overrides the QDockWidget::event() method to ignore such spontaneous show or hide events so QDockWidget won't emit the visibilityChanged() signal then. M +17 -0 src/dolphindockwidget.cpp M +6 -0 src/dolphindockwidget.h https://invent.kde.org/system/dolphin/-/commit/bfeeb46c3ae0b6e933b0381cc10eebad38a2b8c0 Git commit a57ffc9f1ece7cf196691ec878383bcc20903da7 by Felix Ernst, on behalf of Felix Ernst. Committed on 06/01/2025 at 15:17. Pushed by felixernst into branch 'release/24.12'. Fix focus changing when unminimising on X11 In f220e3b0783a24a6c7195f170297cf4b12a29d85 I made the keyboard focus move to the places and terminal panel whenever they are toggled visible. Unfortunately the QDockWidget::visibilityChanged() signal is also emitted (at least on X11) simply when the window containing that panel is minimized or restored. This commit overrides the QDockWidget::event() method to ignore such spontaneous show or hide events so QDockWidget won't emit the visibilityChanged() signal then. (cherry picked from commit bfeeb46c3ae0b6e933b0381cc10eebad38a2b8c0) Co-authored-by: Felix Ernst <felixernst@zohomail.eu> M +17 -0 src/dolphindockwidget.cpp M +6 -0 src/dolphindockwidget.h https://invent.kde.org/system/dolphin/-/commit/a57ffc9f1ece7cf196691ec878383bcc20903da7 |