simplify code in windowstracker

Authored by mvourlakos on Tue, Apr 23, 6:24 AM.