in a motor vehicle with a roof opening located in a fixed roof surface and a cover for closing the roof opening , the cover has an at least partially transparent pane and a frame which is connected to the pane and which extends over at least one part of the edge of the pane . the pane is a plastic pane and the frame is formed by in situ foaming of a foam material onto the periphery of the pane , the shape of the pane , in at least one partial area of a connecting region between the pane and the peripheral foam , is configured such that a permanent mechanical , positive interlocking connection is created between the pane and the peripheral foam .