Add window focus and iconification events