Performance improvement in getting accessible active window.
authorTomasz Olszak <t.olszak@samsung.com>
Mon, 3 Aug 2015 13:42:28 +0000 (15:42 +0200)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 4 Aug 2015 11:21:19 +0000 (20:21 +0900)
commit0455678ddf8ab30694b14cf43d1065d7eb9af19c
tree32b813aa1be3416847f1821a9add6bec96fced69
parentbdd91a67f7bc9ed7be637a17531cc4d75126c217
Performance improvement in getting accessible active window.

First we try to deteremine PID of currently active app using
ecore_x_window_focus_get. Then we iterate over accessible child apps
filtering by that app pid. If something goes wrong we fall back to previous
algorithm. Additionally some memory management fixes were added.
This improvement is proposed because iterating over accessible app windows
when app is not active is very time consuming (non active aps have low priority
and every dbus call takes a few hundred ms).

Change-Id: Ia18401200afa2bbc5f06e511f440f0fb51b16cd4
src/window_tracker.c