Filling the gap with white would be an improvement, but not ideal. Ideal I think is to 'clamp' the client texture to the edge, so you get whatever colour the edge pixels of the client's surface is, without stretching the rest of the surface. A good example of this is in the Mir demo servers' resizing implementation (GL renderer), or: https://code.launchpad.net/~vanvugt/qtmir/unstretch/+merge/268724
Filling the gap with white would be an improvement, but not ideal. Ideal I think is to 'clamp' the client texture to the edge, so you get whatever colour the edge pixels of the client's surface is, without stretching the rest of the surface. A good example of this is in the Mir demo servers' resizing implementation (GL renderer), or: /code.launchpad .net/~vanvugt/ qtmir/unstretch /+merge/ 268724
https:/