diff --git a/src/shell-app.c b/src/shell-app.c index 335147c19..dbf537ce9 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -1067,16 +1067,10 @@ _shell_app_remove_window (ShellApp *app, if (!meta_window_is_skip_taskbar (window)) app->running_state->interesting_windows--; + shell_app_sync_running_state (app); if (app->running_state->windows == NULL) - { - g_clear_pointer (&app->running_state, unref_running_state); - shell_app_state_transition (app, SHELL_APP_STATE_STOPPED); - } - else - { - shell_app_sync_running_state (app); - } + g_clear_pointer (&app->running_state, unref_running_state); g_signal_emit (app, shell_app_signals[WINDOWS_CHANGED], 0); }