From c43cf2f19243057fe8b02410bb11669a720e2ca8 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 19 Jun 2023 17:48:37 +0200 Subject: Wayland: improve support of multi-display setups --- src/drivers/Wayland/Fl_Wayland_Window_Driver.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.H') diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H index ebcdfea5f..985d7bfe2 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H @@ -68,6 +68,10 @@ public: int screen; bool busy; }; + struct surface_output { // for linked list of displays where a surface maps + struct Fl_Wayland_Screen_Driver::output *output; + struct wl_list link; + }; static type_for_resize_window_between_screens data_for_resize_window_between_screens_; void decorated_win_size(int &w, int &h); void shape_bitmap_(Fl_Image* b); @@ -131,7 +135,7 @@ public: struct wld_window { Fl_Window *fl_win; - struct Fl_Wayland_Screen_Driver::output *output; // the display where win is mapped + struct wl_list outputs; // linked list of displays where part or whole of window maps struct wl_surface *wl_surface; struct fl_wld_buffer *buffer; struct xdg_surface *xdg_surface; -- cgit v1.2.3