Jonas Ådahl
f64259ceae
tests/wayland: Draw surface with shared helper
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2416 >
2022-05-17 08:03:29 +00:00
Jonas Ådahl
d5367f7332
tests/wayland: Make display helper a GObject
...
This is in preparation for adding signals.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2416 >
2022-05-17 08:03:29 +00:00
Jonas Ådahl
b0528dcd53
tests/wayland: Port xdg-shell action tests to WaylandDisplay
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2416 >
2022-05-17 08:03:29 +00:00
Jonas Ådahl
7992b46566
tests/invalid-xdg-shell-actions: Avoid flakyness
...
The roundtrip in the handle-configure function could in theory (and in
practice in the future) happen to receive another configure event. If we
send yet another invalid geometry the second time, we log one time too
many in the server, which fails the test. Avoid this by ignoring the
second configure event; it's enough to pass through the error handling
path once.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1993 >
2021-12-19 15:48:51 +00:00
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