Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
-
Macbook with M1 chip, MacOs BigSur 11.3, 11.4
Description
On a Macbook with an external display connected, context menus and tooltips will always show up on the laptop screen. Even if the actual application window is on the external display. This happens consistently after the Macbook goes to sleep and is woken up again. After relaunching the application, the context menus and tooltips will show up on the correct display (until the computer goes to sleep again)
The bug originally showed itself in the application KeepassXC. Here is the original bug report: https://github.com/keepassxreboot/keepassxc/issues/6411
One of the maintainers asked me to create a Qt bug, as according to them this is an issue with Qt itself and not with KeepassXC.
I checked KeepassXC with an Intel Macbook and couldn't reproduce the issue. It seems to be an issue specific to M1 Macs. Update: I've found that this bug is not exclusive to ARM M1 Macs. The same bug occurs on an Intel based model as well.
Steps to reproduce:
- launch a Qt desktop app with an external monitor connected
- put Macbook to sleep or wait until it goes to sleep by itself
- wake up Macbook
- make sure the application window is on the external display
- activate a context menu (make a right-click somewhere)
Expected:
- Context menu always shows up where I clicked, right where the mouse cursor is
Actual:
- Context menu will always show up on the laptop screen, even if the main application window is currently on the external display
please also see screen shot demonstrating the bug in KeepassXC