[mutter/gnome-3-24] monitor: Generate spec struct earlier
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-24] monitor: Generate spec struct earlier
- Date: Fri, 12 May 2017 03:57:20 +0000 (UTC)
commit 317517fcb52c9a9fee375c4e81eeac0be11e7d46
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Apr 28 15:34:27 2017 +0800
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
src/backends/meta-monitor.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c
index 3d5e0e4..47729a8 100644
--- a/src/backends/meta-monitor.c
+++ b/src/backends/meta-monitor.c
@@ -356,9 +356,9 @@ meta_monitor_normal_new (MetaOutput *output)
monitor_priv->outputs = g_list_append (NULL, output);
monitor_priv->winsys_id = output->winsys_id;
+ meta_monitor_generate_spec (monitor);
meta_monitor_normal_generate_modes (monitor_normal);
- meta_monitor_generate_spec (monitor);
return monitor_normal;
}
@@ -677,11 +677,12 @@ meta_monitor_tiled_new (MetaMonitorManager *monitor_manager,
monitor_tiled->main_output = output;
add_tiled_monitor_outputs (monitor_manager, monitor_tiled);
+ meta_monitor_generate_spec (monitor);
+
meta_monitor_manager_tiled_monitor_added (monitor_manager,
META_MONITOR (monitor_tiled));
meta_monitor_tiled_generate_modes (monitor_tiled);
- meta_monitor_generate_spec (monitor);
return monitor_tiled;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]