wayland: Add basic multiple output support

Store the wl_output pointer within the the GdkWaylandMonitor structure.
This commit is contained in:
Rob Bradford
2013-02-14 13:00:19 +00:00
parent e16ade9836
commit fab808f92c
3 changed files with 5 additions and 3 deletions

View File

@ -67,6 +67,7 @@ struct _GdkWaylandScreenClass
struct _GdkWaylandMonitor
{
struct wl_output *output;
GdkRectangle geometry;
int width_mm;
int height_mm;
@ -589,6 +590,7 @@ _gdk_wayland_screen_add_output (GdkScreen *screen,
GdkWaylandScreen *screen_wayland = GDK_WAYLAND_SCREEN (screen);
GdkWaylandMonitor *monitor = g_new0(GdkWaylandMonitor, 1);
monitor->output = output;
g_ptr_array_add(screen_wayland->monitors, monitor);
wl_output_add_listener(output, &output_listener, monitor);