Revert "Transition the ShellApp state when ready."
This reverts commit c171ea12df
.
This commit is contained in:
parent
614bcd8016
commit
ac1b814851
@ -739,6 +739,9 @@ _shell_app_add_window (ShellApp *app,
|
|||||||
|
|
||||||
g_object_freeze_notify (G_OBJECT (app));
|
g_object_freeze_notify (G_OBJECT (app));
|
||||||
|
|
||||||
|
if (app->state != SHELL_APP_STATE_STARTING)
|
||||||
|
shell_app_state_transition (app, SHELL_APP_STATE_RUNNING);
|
||||||
|
|
||||||
if (!app->running_state)
|
if (!app->running_state)
|
||||||
create_running_state (app);
|
create_running_state (app);
|
||||||
|
|
||||||
@ -751,9 +754,6 @@ _shell_app_add_window (ShellApp *app,
|
|||||||
if (user_time > app->running_state->last_user_time)
|
if (user_time > app->running_state->last_user_time)
|
||||||
app->running_state->last_user_time = user_time;
|
app->running_state->last_user_time = user_time;
|
||||||
|
|
||||||
if (app->state != SHELL_APP_STATE_STARTING && app->state != SHELL_APP_STATE_RUNNING)
|
|
||||||
shell_app_state_transition (app, SHELL_APP_STATE_RUNNING);
|
|
||||||
|
|
||||||
g_object_thaw_notify (G_OBJECT (app));
|
g_object_thaw_notify (G_OBJECT (app));
|
||||||
|
|
||||||
g_signal_emit (app, shell_app_signals[WINDOWS_CHANGED], 0);
|
g_signal_emit (app, shell_app_signals[WINDOWS_CHANGED], 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user