summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-08-19 17:47:38 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-08-20 21:08:29 +0200
commit56082c28fe89d204822862853961f292ac42d96b (patch)
treeeff4191ff7497c6c6162ab2b4f90535b979b0edf /tests
parent3b184c716eab96741880d2773efa4fa44026e168 (diff)
macOS: close popups on mousedown within the window frame
On macOS, we close active popups when handling mouse-down events in the NSView, but not for such events in the window frame. This allows users to close a window that has a context menu open via the window's close button, which then leaves open popups behind. Factor the popup-closing code out into a dedicated method that we can call from within the NSWindow::sendEvent implementation for mouse down events. Fixes: QTBUG-30522 Change-Id: I9c354efc449cfefff3ed84fa34b1cd8a0da3b4a7 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 70b94eea10d7af83cced09296755a8af28e167b5) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions