bug: detect invalid texture in xdg-shell
Created by: acrisci
Use surface->texture->valid
instead of current->buffer != null
to detect whether the surface has a buffer. This fixes configure requests, since now we upload the buffer and set it to NULL immediately, current->buffer
is always NULL.