Wl_display@1.error(xdg_wm_base@13, 4, "xdg_surface buffer does not match the configured state")

I haven’t heard back from Totalcross yet due to their current support work-load.

However I’ve done some further testing and research here. I started by running a dummy Totalcross app to try and replicate your issue. Here were my results:

  • If I run the Totalcross app with no rotation, the app starts and runs with no issue.
  • If I rotate the display via weston.ini and then start the app I get the following error:
xdg_wm_base@13: error 4: xdg_surface buffer (1280 x 800) is larger than the configured fullscreen state (800 x 1280)

This error appears similar to yours but it has a bit more info. It seems the surface buffer is still sized as if the screen is not rotated. This then conflicts with the actual dimensions of the rotated screen.

I did further testing where I tried other graphical apps/frameworks. For example I tried Crank and Qt. With those frameworks they properly ran on a rotated screen and the apps themselves rotated properly as well. Which still leads me to think this is a quirk with Totalcross apps themselves.

I’m not an expert with Totalcross applications, but perhaps there’s a config or something in the code that may help.

Is it possible to set a screen size in the application?

Or is possible to instead rotate the application in the code rather than use the rotation in weston?

Perhaps posting your question additionally on the Totalcross forums/community may help: TotalCross · Enjoy Our Community | TotalCross · GUI Creator For Embedded, Mobile... Everything!

Best regards,
Jeremias