Details
Description
When a Mac application is put in full screen mode, the Dock and menu bar are automatically hidden. However, the value returned from QDesktopWidget::availableGeometry() still accounts for this space, thus returning an incorrect value.
One manifestation of this issue is that context menus are positioned incorrectly if the right-click occurs in the region the Dock used to occupy. To repro:
- Position the Dock at the bottom of the screen, unhidden.
- Build the attached sample, and run it.
- Click the "dual-arrow" icon in the top-right of the title bar to put the application in full-screen.
- Right-click in the region of the screen the Dock occupied before switching to full-screen.
The context menu will be positioned above the former Dock location.
Attachments
For Gerrit Dashboard: QTBUG-39403 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
184938,4 | Cocoa: Use the whole geometry when in fullscreen mode for popup menus | dev | qt/qtbase | Status: MERGED | +2 | 0 |
569249,2 | macOS: Don't use full screen geometry for popups | dev | qt/qtbase | Status: MERGED | +2 | 0 |
570445,2 | macOS: Don't use full screen geometry for popups | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
570460,2 | macOS: Don't use full screen geometry for popups | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
570706,2 | macOS: Don't use full screen geometry for popups | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |