fdo#69358: Avoid discontinuity in the gradient of window bar and toolbar

CUIDraw() is undocumented (as it should be, it is after all a private
API), but I was lucky and guessed what was needed.

Change-Id: If686667d9b5dfa3a40e57e5e2b4f87be5796c801