[gnome-shell/T27795: 19/138] shell-app: Move apps to RUNNING when they have 'interesting' windows
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/T27795: 19/138] shell-app: Move apps to RUNNING when they have 'interesting' windows
- Date: Tue, 1 Oct 2019 23:30:55 +0000 (UTC)
commit 52d8a371367b0bab1f6d58b96eab7d93011d3d4c
Author: Mario Sanchez Prada <mario endlessm com>
Date: Fri Sep 15 12:05:27 2017 +0100
shell-app: Move apps to RUNNING when they have 'interesting' windows
Previously, there was a chance an app didn't transition to RUNNING
from the STARTING state, since no transition would happen in that
case even when 'interesting' windows are available.
src/shell-app.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index 2091e2602c..41b08ab8cc 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -937,16 +937,12 @@ shell_app_sync_running_state (ShellApp *app)
{
g_return_if_fail (app->running_state != NULL);
- if (app->state != SHELL_APP_STATE_STARTING)
- {
- if (app->running_state->interesting_windows == 0)
- shell_app_state_transition (app, SHELL_APP_STATE_STOPPED);
- else
- shell_app_state_transition (app, SHELL_APP_STATE_RUNNING);
- }
+ if (app->running_state->interesting_windows > 0)
+ shell_app_state_transition (app, SHELL_APP_STATE_RUNNING);
+ else if (app->state != SHELL_APP_STATE_STARTING)
+ shell_app_state_transition (app, SHELL_APP_STATE_STOPPED);
}
-
static void
shell_app_on_skip_taskbar_changed (MetaWindow *window,
GParamSpec *pspec,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]