aboutsummaryrefslogtreecommitdiff
path: root/sway/config/output.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-12 19:40:17 +0100
committeremersion <contact@emersion.fr>2017-12-12 19:40:17 +0100
commitf3d880b0ec9eae246ef0d70dd67bed6d7488ab33 (patch)
tree3933dbb575826d49ddce5cf3ffa25c45910d29d9 /sway/config/output.c
parent475a0132a99aa7c576a399fdee920aa3ecadeff9 (diff)
Add scale and transform events to sway_output
Diffstat (limited to 'sway/config/output.c')
-rw-r--r--sway/config/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index e6e680d3..b06c7c0e 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -112,10 +112,12 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
if (oc && oc->scale > 0) {
sway_log(L_DEBUG, "Set %s scale to %d", oc->name, oc->scale);
wlr_output_set_scale(wlr_output, oc->scale);
+ wl_signal_emit(&output->sway_output->events.scale, output->sway_output);
}
if (oc && oc->transform >= 0) {
sway_log(L_DEBUG, "Set %s transform to %d", oc->name, oc->transform);
wlr_output_transform(wlr_output, oc->transform);
+ wl_signal_emit(&output->sway_output->events.transform, output->sway_output);
}
// Find position for it