JBR-7313 Wayland: error: xdg_surface buffer does not match the configured maximized state
The most important part is to keep the surface size that came from the Wayland server in the 'configure' event and pass it to nativeSetSurfaceSize() and nativeSetWindowGeometry() unmodified, especially when in maximized state.
It seems that passing the scale to SurfaceData is unnecessary as it is not used in WLSMSurfaceData. If it is safe to remove the scale from WLVKSurfaceData, let's do that and free SurfaceData from worrying about scaling altogether.
JBR-7313 Wayland: error: xdg_surface buffer does not match the configured maximized state
The most important part is to keep the surface size that came from the Wayland server in the 'configure' event and pass it to
nativeSetSurfaceSize()
andnativeSetWindowGeometry()
unmodified, especially when in maximized state.It seems that passing the scale to
SurfaceData
is unnecessary as it is not used inWLSMSurfaceData
. If it is safe to remove the scale fromWLVKSurfaceData
, let's do that and free SurfaceData from worrying about scaling altogether.