mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-17 06:59:43 -05:00
Use wl_signal_emit_mutable
This commit is contained in:
parent
013f121f45
commit
ef4baea0e2
91 changed files with 365 additions and 456 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue