As far as I see SDL_WindowEvent is only present in SDL 1.3 but not in SDL 1.2 wich ships with FPC Lazarus.