logical-monitor: Pass output when iterating over CRTCs

While not currently used by any users, it'll be useful in future
commits.

https://gitlab.gnome.org/GNOME/mutter/issues/548
https://gitlab.gnome.org/GNOME/mutter/merge_requests/525
This commit is contained in:
Jonas Ådahl 2019-04-04 18:43:09 +02:00 committed by Georges Basile Stavracas Neto
parent 8932388dda
commit bea7600471
3 changed files with 5 additions and 0 deletions

View File

@ -242,6 +242,7 @@ foreach_crtc (MetaMonitor *monitor,
ForeachCrtcData *data = user_data; ForeachCrtcData *data = user_data;
data->func (data->logical_monitor, data->func (data->logical_monitor,
monitor_crtc_mode->output,
meta_output_get_assigned_crtc (monitor_crtc_mode->output), meta_output_get_assigned_crtc (monitor_crtc_mode->output),
data->user_data); data->user_data);

View File

@ -63,6 +63,7 @@ G_DECLARE_FINAL_TYPE (MetaLogicalMonitor, meta_logical_monitor,
GObject) GObject)
typedef void (* MetaLogicalMonitorCrtcFunc) (MetaLogicalMonitor *logical_monitor, typedef void (* MetaLogicalMonitorCrtcFunc) (MetaLogicalMonitor *logical_monitor,
MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data); gpointer user_data);

View File

@ -584,6 +584,7 @@ typedef struct _GetSupportedKmsFormatsData
static void static void
get_supported_kms_formats_crtc_func (MetaLogicalMonitor *logical_monitor, get_supported_kms_formats_crtc_func (MetaLogicalMonitor *logical_monitor,
MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data) gpointer user_data)
{ {
@ -1827,6 +1828,7 @@ typedef struct _SetCrtcFbData
static void static void
set_crtc_fb_cb (MetaLogicalMonitor *logical_monitor, set_crtc_fb_cb (MetaLogicalMonitor *logical_monitor,
MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data) gpointer user_data)
{ {
@ -1937,6 +1939,7 @@ typedef struct _FlipCrtcData
static void static void
flip_crtc (MetaLogicalMonitor *logical_monitor, flip_crtc (MetaLogicalMonitor *logical_monitor,
MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data) gpointer user_data)
{ {