libweston: Don't send output_changed signal when moving disabled outputs

weston_output_set_position() currently assumes the output is enabled, but
we could be using weston_output_move() to configure an output that hasn't
yet been enabled.

If that's the case, we don't want to send signals or perform setup that
will eventually happen when the output is enabled anyway.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
dev
Derek Foreman 2 years ago committed by Daniel Stone
parent 7e7198bd88
commit 6ee486ff95
  1. 6
      libweston/compositor.c

@ -6562,6 +6562,12 @@ weston_output_set_position(struct weston_output *output, int x, int y)
struct wl_resource *resource;
int ver;
if (!output->enabled) {
output->x = x;
output->y = y;
return;
}
output->move_x = x - output->x;
output->move_y = y - output->y;

Loading…
Cancel
Save