Fix Issue 155: Race Condition in _q_onWinEvent, Thanks EyalAmir