Commit fdf6a83b authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

shell: Process all pending wayland events on startup

This is needed to get reliable monitor information.
Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent efee350f
......@@ -583,6 +583,9 @@ phosh_shell_constructed (GObject *object)
G_CALLBACK (on_monitor_removed),
/* Make sure we processed wayland protocol events */
phosh_wayland_roundtrip (phosh_wayland_get_default ());
if (phosh_monitor_manager_get_num_monitors(priv->monitor_manager)) {
PhoshMonitor *monitor = phosh_monitor_manager_get_monitor (priv->monitor_manager, 0);
/* Can't invoke phosh_shell_set_primary_monitor () since the shell
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