JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.35k stars 198 forks source link

JBR-7313 Wayland: error: xdg_surface buffer does not match the configured maximized state #435

Closed mkartashev closed 3 months ago

mkartashev commented 3 months ago

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.