mutter/src/tests/wayland-test-clients
Jonas Ådahl d2c798838e wayland/xdg-shell: Warn when invalid geometry is set
A client is not allowed to send an empty window geometry, and it is
specified that if it does so an error should be raised. Respect this
rule, ignore bogus geometries sent by clients with a warning.

Also add a soft assert that we don't try to "resend" a configuration
that was never sent, as doing so would result in SIGFPE as the geometry
scale is 0.

This fixes a SIGFPE crash occurring when a client did this.

Related: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2808
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1527
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1557>
2020-12-03 21:39:13 +00:00
..
invalid-subsurfaces.c tests/wayland: Add test for circular subsurfaces 2020-11-05 21:16:27 +01:00
invalid-xdg-shell-actions.c wayland/xdg-shell: Warn when invalid geometry is set 2020-12-03 21:39:13 +00:00
meson.build wayland/xdg-shell: Warn when invalid geometry is set 2020-12-03 21:39:13 +00:00
subsurface-remap-toplevel.c tests/wayland: Test subsurface commits after parent was reset 2020-01-10 16:01:22 +00:00
test-driver.xml tests/wayland: Test subsurface commits after parent was reset 2020-01-10 16:01:22 +00:00
wayland-test-client-utils.c tests/wayland: Test subsurface commits after parent was reset 2020-01-10 16:01:22 +00:00
wayland-test-client-utils.h tests/wayland: Test subsurface commits after parent was reset 2020-01-10 16:01:22 +00:00