Dual monitors: popup windows are hidden
Description
When using dual displays, sometimes modal popup windows (such as schematic object property dialog) are opened on the other monitor, but hidden. For the user it looks like the UI just stopped responding.
Steps to reproduce
It happens after moving any window back or forth between displays, a bit hard to pinpoint exactly when it fails but after it does it's very hard to get it back to usable state again, often requiring a quit and relaunch. One way to reproduce it is:
- Open schematic editor on main display
- Double-click an object to show the popup window
- Move that popup window to the other display
- It disappears but is still active, but unreachable.
- Press ESC to close it, move the schematic window to the other display, try again.
- Now it works fine.
- Close dialog and move the window back to main display and try again.
- Now it fails directly, opening the popup on the other display, hidden.
KiCad Version
Application: KiCad arm64 on arm64
Version: (7.0.0-0), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.3.1
FontConfig 2.14.0
libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.45.1
Platform: macOS Monterey Version 12.5.1 (Build 21G83), 64 bit, Little endian, wxMac
Build Info:
Date: Feb 12 2023 10:56:31
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.3
Curl: 7.77.0
ngspice: 38
Compiler: Clang 13.0.0 with C++ ABI 1002
Build settings:
KICAD_SPICE=ON