logical-monitor: Pass monitor in the for each CRTC helper callback

Will be used in later commits.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042
This commit is contained in:
Jonas Ådahl 2020-01-15 17:17:33 +01:00
parent 1b67f49f7f
commit 7f6cafa847
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,
monitor_crtc_mode->output, 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,
MetaMonitor *monitor,
MetaOutput *output, MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data); gpointer user_data);

View File

@ -601,6 +601,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,
MetaMonitor *monitor,
MetaOutput *output, MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data) gpointer user_data)
@ -1619,6 +1620,7 @@ typedef struct _SetCrtcModeData
static void static void
set_crtc_mode (MetaLogicalMonitor *logical_monitor, set_crtc_mode (MetaLogicalMonitor *logical_monitor,
MetaMonitor *monitor,
MetaOutput *output, MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data) gpointer user_data)
@ -1677,6 +1679,7 @@ typedef struct _FlipCrtcData
static void static void
flip_crtc (MetaLogicalMonitor *logical_monitor, flip_crtc (MetaLogicalMonitor *logical_monitor,
MetaMonitor *monitor,
MetaOutput *output, MetaOutput *output,
MetaCrtc *crtc, MetaCrtc *crtc,
gpointer user_data) gpointer user_data)