diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-09-28 17:06:44 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-09-30 18:35:12 +0200 |
commit | b1b75326f4779c5a8d4ce65626ef8a80079ff994 (patch) | |
tree | 2c6499837c6181a96e0506a55c8ec2c77f59da91 /.github | |
parent | 07cfab07a2a489e021b56226824a2d9b1211fad7 (diff) |
macOS: fix window deactivation when a popup is open
On macOS, we get explicit notifications when a window becomes or resigns
the key, before we have had a chance to close open popups. The popup is
then closed later, but the delivery of the WindowDeactivate event has
already been aborted as QApplication interprets such notifications while
in popup mode as delayed focus events.
This leaves the focus widget still displaying focus even though its
window is no longer active. Trying to activate the window again then
does not correctly transfer focus.
To fix this, close all popup explicitly when a window resigns key.
Task-number: QTBUG-78750
Fixes: QTBUG-66513
Fixes: QTBUG-69710
Pick-to: 6.2
Change-Id: I590757c7d3532dbe4b5358a8e121ce8aa871a699
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions