GdkWaylandWindow: Clear export user data when used
It was only cleared when unexported, but we could just as well clear it when its used too. https://bugzilla.gnome.org/show_bug.cgi?id=782109
This commit is contained in:
committed by
Matthias Clasen
parent
088cf99763
commit
e016d9a5db
@ -4027,7 +4027,8 @@ xdg_exported_handle (void *data,
|
|||||||
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
|
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
|
||||||
|
|
||||||
impl->exported.callback (window, handle, impl->exported.user_data);
|
impl->exported.callback (window, handle, impl->exported.user_data);
|
||||||
impl->exported.user_data = NULL;
|
g_clear_pointer (&impl->exported.user_data,
|
||||||
|
impl->exported.destroy_func);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct zxdg_exported_v1_listener xdg_exported_listener = {
|
static const struct zxdg_exported_v1_listener xdg_exported_listener = {
|
||||||
|
|||||||
Reference in New Issue
Block a user