mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 21:32:14 +00:00
4ff54997b6
Realizing a cursor will assume view related state objects are valid so they can mark them as dirty. This assumption broke when there were a scale changed that happened with multiple CRTCs, as we'd create view object by view object as we realized the texture. Realizing the texture would trigger a signal that had the handler assuming the validity of all view objects, but if we only had gotten to the first, the second view would not be there yet, thus we'd be doing a NULL pointer dereference. Creating the view objects first, then handling the updating avoids this problem by making the already done assumption valid on hotplugs. The test case added tests exactly this series of events, and uses a virtual monitor as a cheap trick to make the KMS CRTC based view the first one, and an arbitrary view the second that previously had its view object initialized too late. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3012 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3262> |
||
---|---|---|
.. | ||
backends | ||
common | ||
compositor | ||
core | ||
frames | ||
meta | ||
tests | ||
wayland | ||
x11 | ||
meson.build | ||
meta-private-enum-types.c.in | ||
meta-private-enum-types.h.in |