aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-18 07:16:16 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-18 07:16:16 -0400
commitef4baea0e2f799c7bdd2e077dac4174fa31e85df (patch)
treed71e1399e64b9e5bcdda1d52246c90eca15cf150 /backend/headless
parent013f121f455efcc1e68e98c60c74aadfb51fd98e (diff)
Use wl_signal_emit_mutable
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/backend.c3
-rw-r--r--backend/headless/output.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index b14dda4a..34536765 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -3,7 +3,6 @@
#include <wlr/interfaces/wlr_output.h>
#include <wlr/util/log.h>
#include "backend/headless.h"
-#include "util/signal.h"
struct wlr_headless_backend *headless_backend_from_backend(
struct wlr_backend *wlr_backend) {
@@ -20,7 +19,7 @@ static bool backend_start(struct wlr_backend *wlr_backend) {
wl_list_for_each(output, &backend->outputs, link) {
wl_event_source_timer_update(output->frame_timer, output->frame_delay);
wlr_output_update_enabled(&output->wlr_output, true);
- wlr_signal_emit_safe(&backend->backend.events.new_output,
+ wl_signal_emit_mutable(&backend->backend.events.new_output,
&output->wlr_output);
}
diff --git a/backend/headless/output.c b/backend/headless/output.c
index 2ce15a16..5350747f 100644
--- a/backend/headless/output.c
+++ b/backend/headless/output.c
@@ -4,7 +4,6 @@
#include <wlr/interfaces/wlr_output.h>
#include <wlr/util/log.h>
#include "backend/headless.h"
-#include "util/signal.h"
static const uint32_t SUPPORTED_OUTPUT_STATE =
WLR_OUTPUT_STATE_BACKEND_OPTIONAL |
@@ -134,7 +133,7 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend,
if (backend->started) {
wl_event_source_timer_update(output->frame_timer, output->frame_delay);
wlr_output_update_enabled(wlr_output, true);
- wlr_signal_emit_safe(&backend->backend.events.new_output, wlr_output);
+ wl_signal_emit_mutable(&backend->backend.events.new_output, wlr_output);
}
return wlr_output;