summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2021-09-30 16:46:37 +0200
committerDoris Verria <doris.verria@qt.io>2021-10-07 14:30:53 +0000
commit911c97f2b59945093e9e87130d687c6a2a9423ac (patch)
tree947baaa0a57118e9071604dc1a51c3665f322191 /src/corelib/kernel
parentc1281c306c1304374cb7ba1c341db71b584bf6c6 (diff)
QCocoaWindow: Make window key if the app's modal window is hidden
On macOS, when showing a window, we decide if it should be made key and therefore active, if the app has no active modal session or if the window's worksWhenModal returns true. However, the window needs to be made key also when a modal window is present, but not visible. Add this condition when checking if the window needs to be made key. This makes the behavior consistent with what happens when a modal is minimized on macOS. The input focus is passed to the next window, and the window appears active, even if it can not be interacted with. Fixes: QTBUG-85574 Pick-to: 5.15 6.2 Change-Id: I204d4f912128f4a46840789fc2ee08e1b2716bfc Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/kernel')
0 files changed, 0 insertions, 0 deletions