aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-10 16:57:10 +0100
committerSimon Ser <contact@emersion.fr>2021-01-15 10:18:56 +0100
commitcc56b4f0737398c3cc7f5d8d0296d2ca8930afa9 (patch)
treeedfec9ba04f2bca9c02b46552c422a931b0f771e
parentaab43b3c76bb6c1cdbd89cbdffafe74e8530e70b (diff)
output: remove scale/transform events
Instead, the commit event should be used.
-rw-r--r--include/wlr/types/wlr_output.h2
-rw-r--r--types/wlr_output.c4
2 files changed, 0 insertions, 6 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 0af2c454..84837a59 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -170,8 +170,6 @@ struct wlr_output {
struct wl_signal bind; // wlr_output_event_bind
struct wl_signal enable;
struct wl_signal mode;
- struct wl_signal scale;
- struct wl_signal transform;
struct wl_signal description;
struct wl_signal destroy;
} events;
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 8dbdfdfb..4721f0b9 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -343,8 +343,6 @@ void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend,
wl_signal_init(&output->events.bind);
wl_signal_init(&output->events.enable);
wl_signal_init(&output->events.mode);
- wl_signal_init(&output->events.scale);
- wl_signal_init(&output->events.transform);
wl_signal_init(&output->events.description);
wl_signal_init(&output->events.destroy);
pixman_region32_init(&output->pending.damage);
@@ -624,13 +622,11 @@ bool wlr_output_commit(struct wlr_output *output) {
bool scale_updated = output->pending.committed & WLR_OUTPUT_STATE_SCALE;
if (scale_updated) {
output->scale = output->pending.scale;
- wlr_signal_emit_safe(&output->events.scale, output);
}
if (output->pending.committed & WLR_OUTPUT_STATE_TRANSFORM) {
output->transform = output->pending.transform;
output_update_matrix(output);
- wlr_signal_emit_safe(&output->events.transform, output);
}
bool geometry_updated = output->pending.committed &