Merge "Ignore events when there is no focused stack." into pi-dev