OpenWindow ignores x/y beyond primary display
Posted: Wed Apr 16, 2025 9:31 am
I have two 4K displays attached to my Mac Mini. They are arranged horizontally with the second display's origin at 2560/0.
When I run the following code the window does not appear on my second display but at a weird location on my first:
However, when I manually resize the window after creation it shows up at the position specified:
I am running macOS 15.4.
When I run the following code the window does not appear on my second display but at a weird location on my first:
Code: Select all
OpenWindow(0, 2560, 0, 195, 260, "PureBasic Window",
#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
OpenWindow(0, 2560, 0, 195, 260, "PureBasic Window",
#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
ResizeWindow(0, 2560, 0, #PB_Ignore, #PB_Ignore)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow