GNOME Bugzilla – Bug 618378
[ShellApp] Rework compare to take into account closed windows
Last modified: 2010-05-17 17:37:55 UTC
The API docs for ShellApp claimed it sorted by the last time the user interacted with the app, but if one closed a window, then we would fall back to comparing against a possibly much older timestamp from another window. Fix this by just keeping a user time per app. Also clean up the comparison function to explicitly check the state instead of deferring to the window list.
Created attachment 160828 [details] [review] [ShellApp] Rework compare to take into account closed windows
Comment on attachment 160828 [details] [review] [ShellApp] Rework compare to take into account closed windows should we initialize last_user_time somewhere (creation? startup notifictaion?) or is there guaranteed to be a user-time-changed event pretty quickly?
Created attachment 160839 [details] [review] [ShellApp] Rework compare to take into account closed windows
This patch initializes user time when a window is first added.