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>
This commit is contained in:
Derek Foreman
2022-07-27 11:05:32 -05:00
committed by Daniel Stone
parent 7e7198bd88
commit 6ee486ff95
+6
View File
@@ -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;