mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 02:50:41 -05:00
monitor: Generate spec struct earlier
By generating the spec struct earlier, code executed later can use the fields in the spec. https://bugzilla.gnome.org/show_bug.cgi?id=781723
This commit is contained in:
parent
0f5ac1dc28
commit
317517fcb5
@ -356,9 +356,9 @@ meta_monitor_normal_new (MetaOutput *output)
|
|||||||
|
|
||||||
monitor_priv->outputs = g_list_append (NULL, output);
|
monitor_priv->outputs = g_list_append (NULL, output);
|
||||||
monitor_priv->winsys_id = output->winsys_id;
|
monitor_priv->winsys_id = output->winsys_id;
|
||||||
|
meta_monitor_generate_spec (monitor);
|
||||||
|
|
||||||
meta_monitor_normal_generate_modes (monitor_normal);
|
meta_monitor_normal_generate_modes (monitor_normal);
|
||||||
meta_monitor_generate_spec (monitor);
|
|
||||||
|
|
||||||
return monitor_normal;
|
return monitor_normal;
|
||||||
}
|
}
|
||||||
@ -677,11 +677,12 @@ meta_monitor_tiled_new (MetaMonitorManager *monitor_manager,
|
|||||||
monitor_tiled->main_output = output;
|
monitor_tiled->main_output = output;
|
||||||
add_tiled_monitor_outputs (monitor_manager, monitor_tiled);
|
add_tiled_monitor_outputs (monitor_manager, monitor_tiled);
|
||||||
|
|
||||||
|
meta_monitor_generate_spec (monitor);
|
||||||
|
|
||||||
meta_monitor_manager_tiled_monitor_added (monitor_manager,
|
meta_monitor_manager_tiled_monitor_added (monitor_manager,
|
||||||
META_MONITOR (monitor_tiled));
|
META_MONITOR (monitor_tiled));
|
||||||
|
|
||||||
meta_monitor_tiled_generate_modes (monitor_tiled);
|
meta_monitor_tiled_generate_modes (monitor_tiled);
|
||||||
meta_monitor_generate_spec (monitor);
|
|
||||||
|
|
||||||
return monitor_tiled;
|
return monitor_tiled;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user