Commit 40f33cf5 authored by Guido Gunther's avatar Guido Gunther

shell: Create sensor-manager early

We want that before the panels since those might use other
managers that need the sensor-manager (e.g. rotation-manager)
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 68a8a01e
......@@ -453,6 +453,8 @@ setup_idle_cb (PhoshShell *self)
priv->session_manager = phosh_session_manager_new ();
priv->mode_manager = phosh_mode_manager_new ();
priv->sensor_proxy_manager = phosh_sensor_proxy_manager_get_default_failable ();
panels_create (self);
/* Create background after panel since it needs the panel's size */
priv->background_manager = phosh_background_manager_new ();
......@@ -481,12 +483,11 @@ setup_idle_cb (PhoshShell *self)
self,
G_CONNECT_SWAPPED);
priv->sensor_proxy_manager = phosh_sensor_proxy_manager_get_default_failable ();
if (priv->sensor_proxy_manager) {
priv->proximity = phosh_proximity_new (priv->sensor_proxy_manager,
priv->lockscreen_manager);
/* TODO: accelerometer */
}
priv->mount_manager = phosh_mount_manager_new ();
phosh_session_manager_register (priv->session_manager,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment