Page 1 of 1

PB6.21, 6.3b2 RPi Wayland WindowX() and WindowY()

Posted: Sun Sep 21, 2025 8:37 am
by TassyJim
With my RPi and Wayland support enabled, Windows always start centered and WindowX() and WindowY() return zero.

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
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