Is MotionNotify required for what you're doing here, or can you just get away with EnterNotify and LeaveNotify?