openCV on Raspberry Pi Bookworm: cv2.windowMove() not working

  Kiến thức lập trình

here’s my code:

name = "Player"
cv2.namedWindow(name, cv2.WINDOW_NORMAL)
cv2.resizeWindow(name, 800, 600)
cv2.moveWindow(name, 100, 50)

cv2.moveWindow() does not have any effect at all – seems like it has something to do with Wayland Window Manager which does not support moveWindow ..
I tried switching to X11 but won’t get any Desktop screen at all. However, the console is still working for switching back to Wayland.
Any idea for a workaround?