check window id to send notifications