[scene] Discard pixmap if the buffer size has changed
Currently, we discard window pixmaps when the surface size changes, but
the problem with doing so is that the buffer size and the surface size
have nothing in common. The surface size is a logical size.