[gnome-shell] shell-app: Fix a case where last_user_time isn't updated.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shell-app: Fix a case where last_user_time isn't updated.
- Date: Wed, 27 Apr 2011 16:49:58 +0000 (UTC)
commit 7d7cbde1f3909c719559a76472df0b1b363960b2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Apr 27 11:12:08 2011 -0400
shell-app: Fix a case where last_user_time isn't updated.
When activating an uninteresting window, the last_user_time isn't updated,
because we aren't tracking the window that the user_time gets updated on.
Hack around this by setting the last_user_time in shell_app_activate when
activating an uninteresting window.
https://bugzilla.gnome.org/show_bug.cgi?id=643302
src/shell-app.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index 7dff441..301f01e 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -415,6 +415,16 @@ shell_app_activate_window (ShellApp *app,
meta_window_get_user_time (most_recent_transient)))
window = most_recent_transient;
+
+ if (!shell_window_tracker_is_window_interesting (window))
+ {
+ /* We won't get notify::user-time signals for uninteresting windows,
+ * which means that an app's last_user_time won't get updated.
+ * Update it here instead.
+ */
+ app->running_state->last_user_time = timestamp;
+ }
+
if (active != workspace)
meta_workspace_activate_with_focus (workspace, window, timestamp);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]