From 6ee486ff95dffc50ac994b9991ba7b7f775744e3 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 27 Jul 2022 11:05:32 -0500 Subject: [PATCH] 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 --- libweston/compositor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libweston/compositor.c b/libweston/compositor.c index e226f69c..30913cbc 100644 --- a/libweston/compositor.c +++ b/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;