[qt/qt/qtvirtualkeyboard]: Summary of bulk changes made

KDE Git Services - Bulk Change <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git repository change summary for qt/qt/qtvirtualkeyboard
Pushed by mirror-service into branch '6.11'.
Changed from d38fe299f8aaa2498acb0d2264ce242c32dcd14d to d34abc6b541980213cadfe011a9556dc67317f7a
Acknowledgement was received that this change introduces only existing code that has been pushed to another public open source repository.

This change contains the following new commits:

Git commit d34abc6b541980213cadfe011a9556dc67317f7a by Qt Cherry-pick Bot (on behalf of Jarkko Koivikko) on 29/07/2026 at 07:38..
Fix disconnecting from the previously focused window

focusWindowChanged() used the QObject::disconnect(receiver, method)
overload, which forwards to disconnect(this, nullptr, receiver, method).
The sender is therefore the input panel itself rather than the focus
window, so neither call removed the connections made to
QWindow::visibleChanged and QWindow::screenChanged for an earlier focus
window.

Consequently the input panel stayed connected to every window that ever
had focus. A window that is no longer focused could still trigger
focusWindowVisibleChanged(), hiding the input panel while another window
is being edited, or screenChanged(), moving the panel to the screen of
an unfocused window. The Qt::UniqueConnection flag only prevented
duplicate connections to one and the same window, not the stale ones.

Store the connection handles and disconnect through them. The
connections are now always removed before new ones are made, so
Qt::UniqueConnection is no longer needed.

Fixes: QTBUG-148606
Pick-to: 6.8
Change-Id: I7abb38e19a333748dc66f27eb31566effe7b6f16
Reviewed-by: Mitch Curtis <[email protected]>
(cherry picked from commit 433c4bd9672287297218e7287556ebaf0a6757f4)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 44684975e4dec9fa688ae66d83abd550a2b7f655)
https://invent.kde.org/qt/qt/qtvirtualkeyboard/-/commit/d34abc6b541980213cadfe011a9556dc67317f7a
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.