OpenWindow ignores x/y beyond primary display

Post bugreports for the Mac OSX version here
mve001
New User
New User
Posts: 5
Joined: Fri Nov 15, 2024 2:01 pm

OpenWindow ignores x/y beyond primary display

Post by mve001 »

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:

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
However, when I manually resize the window after creation it shows up at the position specified:

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
I am running macOS 15.4.