compositor: Move views when outputs are moved
Previously, when an output was moved due to another output being
unplugged, the views on the first output would remain in the same
position.
This patch adds an output_move signal that the views listen too in
order to repostion themselves in the event of an unplug.
Signed-off-by: Zhang, Xiong Y <xiong.y.zhang@intel.com>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
diff --git a/src/compositor.h b/src/compositor.h
index 6bd637e..530de71 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -194,6 +194,8 @@
int dirty;
struct wl_signal frame_signal;
struct wl_signal destroy_signal;
+ struct wl_signal move_signal;
+ int move_x, move_y;
uint32_t frame_time;
int disable_planes;
@@ -803,6 +805,8 @@
* displayed on.
*/
uint32_t output_mask;
+
+ struct wl_listener output_move_listener;
};
struct weston_surface {