[mutter] monitor: Generate spec struct earlier
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor: Generate spec struct earlier
- Date: Fri, 26 May 2017 07:20:18 +0000 (UTC)
commit 7303a78b06a041d4e6e382dd3867b0fd84e53e5d
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 c907aed..249242f 100644
--- a/src/backends/meta-monitor.c
+++ b/src/backends/meta-monitor.c
@@ -390,9 +390,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;
}
@@ -752,11 +752,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]