mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Update output containers on output layout change
This commit is contained in:
parent
d293c42942
commit
a4619e98c4
4 changed files with 23 additions and 57 deletions
|
|
@ -113,13 +113,10 @@ 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);
|
||||
wlr_output_set_transform(wlr_output, oc->transform);
|
||||
}
|
||||
|
||||
// Find position for it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue