]> cloud.milkyroute.net Git - dolphin.git/commit
Fix focus changing when unminimising on X11
authorFelix Ernst <felixernst@zohomail.eu>
Sat, 4 Jan 2025 17:58:22 +0000 (18:58 +0100)
committerFelix Ernst <felixernst@kde.org>
Mon, 6 Jan 2025 15:09:14 +0000 (15:09 +0000)
commitbfeeb46c3ae0b6e933b0381cc10eebad38a2b8c0
treedcaf65988ce4738e4dcee13aa23d2fb54526bd45
parent738a51dddd410ef0a639a8eddd5dc26b30dbfe48
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.

BUG: 497803
src/dolphindockwidget.cpp
src/dolphindockwidget.h