From ef4baea0e2f799c7bdd2e077dac4174fa31e85df Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 18 Aug 2022 07:16:16 -0400 Subject: Use wl_signal_emit_mutable --- render/allocator/allocator.c | 3 +-- render/gles2/texture.c | 1 - render/wlr_renderer.c | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'render') diff --git a/render/allocator/allocator.c b/render/allocator/allocator.c index 00dadd29..b380584c 100644 --- a/render/allocator/allocator.c +++ b/render/allocator/allocator.c @@ -14,7 +14,6 @@ #include "render/allocator/drm_dumb.h" #include "render/allocator/shm.h" #include "render/wlr_renderer.h" -#include "util/signal.h" #if WLR_HAS_GBM_ALLOCATOR #include "render/allocator/gbm.h" @@ -159,7 +158,7 @@ void wlr_allocator_destroy(struct wlr_allocator *alloc) { if (alloc == NULL) { return; } - wlr_signal_emit_safe(&alloc->events.destroy, NULL); + wl_signal_emit_mutable(&alloc->events.destroy, NULL); alloc->impl->destroy(alloc); } diff --git a/render/gles2/texture.c b/render/gles2/texture.c index 8b4ce673..776baf40 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -15,7 +15,6 @@ #include "render/gles2.h" #include "render/pixel_format.h" #include "types/wlr_buffer.h" -#include "util/signal.h" static const struct wlr_texture_impl texture_impl; diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 478db745..622f5f96 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -26,7 +26,6 @@ #endif // WLR_HAS_VULKAN_RENDERER #include "backend/backend.h" -#include "util/signal.h" #include "render/pixel_format.h" #include "render/wlr_renderer.h" @@ -53,7 +52,7 @@ void wlr_renderer_destroy(struct wlr_renderer *r) { assert(!r->rendering); - wlr_signal_emit_safe(&r->events.destroy, r); + wl_signal_emit_mutable(&r->events.destroy, r); if (r->impl && r->impl->destroy) { r->impl->destroy(r); -- cgit v1.2.3