mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -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
07b8cc0773
commit
7303a78b06
@ -390,9 +390,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;
|
||||||
}
|
}
|
||||||
@ -752,11 +752,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