mutter/src
Sebastian Keller b41c4aec26 wayland/gtk-shell: Fix MetaWaylandGtkSurface leak on surface destroy
The MetaWaylandSurface corresponding to a MetaWaylandGtkSurface can be
destroyed before the MetaWaylandGtkSurface is destroyed. In its destroy
function MetaWaylandSurface however was unsetting the destructor of the
correspnding resource along with the gtk_surface1 interface
implementation. This was done to prevent further gtk_surface1 requests
on a NULLed MetaWaylandSurface, if it has been destroyed before the
MetaWaylandGtkSurface.

It would be enough to just unset the resource implementation, while
keeping the destructor to fix this leak. However the following commit
will rely on the implementation being available after the
MetaWaylandSurface has been destroyed. So instead introduce NULL checks
for all functions that can be called on the gtk_surface1 interface and
do not unset the implementation.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1307>
2021-01-29 16:21:16 +00:00
..
backends screen-cast/area-src: Handle monitors changes here too 2021-01-29 08:35:02 +00:00
compositor shaped-texture: Update the full bounding box of each clip rectangle 2021-01-27 17:05:38 +08:00
core window: Guard can_ping() against unmanaging windows 2021-01-28 14:47:28 +00:00
meta meta: Remave meta_activate_session() 2021-01-28 20:05:23 +00:00
tests tests/monitor-unit-tests: Sanity check some monitor info 2021-01-28 20:05:23 +00:00
ui frames: Consider events on fullscreen windows to be on the client area 2021-01-28 15:30:29 +00:00
wayland wayland/gtk-shell: Fix MetaWaylandGtkSurface leak on surface destroy 2021-01-29 16:21:16 +00:00
x11 workspace-manager, x11-display: Default to a single row 2021-01-27 11:48:10 -03:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build kms: Add atomic MetaKmsImplDevice backend 2021-01-22 16:47:08 +00:00
meta-private-enum-types.c.in screen-cast: Add screen cast flag to streams 2020-07-30 09:51:16 +02:00
meta-private-enum-types.h.in screen-cast: Add screen cast flag to streams 2020-07-30 09:51:16 +02:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml x11: Support the CTM (color transform matrix) RandR property 2021-01-11 13:44:54 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml remote-desktop: Allow using custom scroll source for NotifyPointerAxis 2021-01-11 10:12:53 +01:00
org.gnome.Mutter.ScreenCast.xml screen-cast: Add 'is-recording' option to record methods 2020-07-31 10:41:15 +02:00