mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 00:39:30 +00:00
4afa66fe41f0d82c1d9e025cb87ab0a2a4ca6cb4

When updating the main monitor, make sure to update the toplevel main monitor before trying to use that as the main monitor for non-toplevel windows (such as popups). Without this, when the main monitor is updated as a side effect to monitors being changed (for example due to a hot plug event, or coming back from being suspended) the main monitor pointer may, after 'monitors-changed' has completed, point to freed memory resulting in undefined behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=784867
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%