smithay icon indicating copy to clipboard operation
smithay copied to clipboard

Invalid xdg_surface window geometry is not detected

Open vyivel opened this issue 6 months ago • 0 comments

When applied, the effective window geometry will be the set window geometry clamped to the bounding rectangle of the combined geometry of the surface of the xdg_surface and the associated subsurfaces.

The effective geometry will not be recalculated unless a new call to set_window_geometry is done and the new pending surface state is subsequently applied.

The width and height of the effective window geometry must be greater than zero. Setting an invalid size will raise an invalid_size error.

Currently (as for commit 2cf66ca5760cbd7b028d1c7ac2aada0103ca0d71), invalid_size is not sent.

randfall has some cases (xdg_surface_window_geometry_*) which you might find useful for testing this.

vyivel avatar Apr 14 '25 12:04 vyivel