diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-08 22:23:00 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-03-07 15:09:58 +0000 |
| commit | 8cd7a3d4723ca414f3fe544704a0ccb752da94b8 (patch) | |
| tree | 3239ca5990f23cd8c9564d9053f4b398c6a7ed87 /src/openglwidgets/qopenglwidget.cpp | |
| parent | 9069b7fb20fe46f6e7b74c23d052274a8c5cf8dc (diff) | |
Fix menu size in multiscreen setups
During QMenuPrivate::popup() and QMenuBarPrivate::popupAction(),
QMenuPrivate::popupGeometry() is called from updateActionRects() with
screen = 0 several times (from sizeHint() and various event handlers
triggered), which causes it to return the primary screen geometry
always.
To fix this for the non-QGraphicsView case, use the screen of
the menu when it is visible or the screen stored in a newly introduced
popupScreen member variable, which is set from a few places
in QMenuPrivate::popup().
Fixes: QTBUG-118434
Pick-to: 6.7 6.6 6.5
Change-Id: I6b18593d313719d628b0856004197ac59f46c270
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/openglwidgets/qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions
