Fix buffer swap assert
After paint in case we have swap events the buffer swap should be pending. This is not always the case with the X11 standalone plugin what needs to be investigated some more. This is for now a quick fix to make sessions work again without failing on the assert.
Showing with 9 additions and 2 deletions