PB6.21, 6.3b2 RPi Wayland WindowX() and WindowY()
Posted: Sun Sep 21, 2025 8:37 am
With my RPi and Wayland support enabled, Windows always start centered and WindowX() and WindowY() return zero.
The code runs as expected until I enable Wayland Support.
I can move windows and they stay moved but I am unable to save their position and always restart centered.
Resize works OK.
Jim
Code: Select all
If OpenWindow(0, 10, 10, 300, 300, "Move me !", #PB_Window_SystemMenu | #PB_Window_SizeGadget)
Repeat
Event = WaitWindowEvent()
If event = #PB_Event_SizeWindow Or event = #PB_Event_MoveWindow
Debug WindowX(0)
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
I can move windows and they stay moved but I am unable to save their position and always restart centered.
Resize works OK.
Jim