Commit 5086168b authored by Bastien Nocera's avatar Bastien Nocera

main: Fix possible assertion on startup

In some cases, Totem was focused on startup by the time we
handled command-line arguments. This triggered an assertion
when trying to show the fullscreen popups because we weren't
fullscreened yet.
parent ca02d768
......@@ -307,7 +307,8 @@ totem_fullscreen_show_popups (TotemFullscreen *fs, gboolean show_cursor)
GtkWidget *item;
g_assert (fs->priv->is_fullscreen != FALSE);
if (!fs->priv->is_fullscreen)
if (fs->priv->popup_in_progress != FALSE)
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