diff options
author | emersion <contact@emersion.fr> | 2017-12-12 19:40:17 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-12 19:40:17 +0100 |
commit | f3d880b0ec9eae246ef0d70dd67bed6d7488ab33 (patch) | |
tree | 3933dbb575826d49ddce5cf3ffa25c45910d29d9 /sway/config | |
parent | Use custom modes when output has no mode (diff) | |
download | sway-f3d880b0ec9eae246ef0d70dd67bed6d7488ab33.tar.gz sway-f3d880b0ec9eae246ef0d70dd67bed6d7488ab33.tar.zst sway-f3d880b0ec9eae246ef0d70dd67bed6d7488ab33.zip |
Add scale and transform events to sway_output
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 2 |
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) { | |||
112 | if (oc && oc->scale > 0) { | 112 | if (oc && oc->scale > 0) { |
113 | sway_log(L_DEBUG, "Set %s scale to %d", oc->name, oc->scale); | 113 | sway_log(L_DEBUG, "Set %s scale to %d", oc->name, oc->scale); |
114 | wlr_output_set_scale(wlr_output, oc->scale); | 114 | wlr_output_set_scale(wlr_output, oc->scale); |
115 | wl_signal_emit(&output->sway_output->events.scale, output->sway_output); | ||
115 | } | 116 | } |
116 | if (oc && oc->transform >= 0) { | 117 | if (oc && oc->transform >= 0) { |
117 | sway_log(L_DEBUG, "Set %s transform to %d", oc->name, oc->transform); | 118 | sway_log(L_DEBUG, "Set %s transform to %d", oc->name, oc->transform); |
118 | wlr_output_transform(wlr_output, oc->transform); | 119 | wlr_output_transform(wlr_output, oc->transform); |
120 | wl_signal_emit(&output->sway_output->events.transform, output->sway_output); | ||
119 | } | 121 | } |
120 | 122 | ||
121 | // Find position for it | 123 | // Find position for it |