A process can have more than one window, so identify
a window to save in an app info.
Currently, if a process already registered a window
and other window of this process is not focused,
then resourced ignores window update.
Change-Id: I50890744ee93dd8da4fd996a3eea7880a7efd9ee
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
* If one of window has is_focused = 1, then it is the most important.
* Otherwise, the higher in the window stack, the more important window.
*/
- if (!window->is_focused)
- return RESOURCED_ERROR_NONE;
-
existing_window = g_hash_table_lookup(window_table, (gconstpointer) &window->pid);
- if (existing_window)
+ if (existing_window && !window->is_focused)
return RESOURCED_ERROR_NONE;
new_window = calloc(1, sizeof(struct proc_app_window_info));