WindowManager event handling