effects/slidingpopups: Properly clip windows
The region that we pass to the next paintWindow() cannot be larger than the one that we've received. If an effect passes a larger region, the tracked buffer damage will be messed up and user will see all sorts of visual artifacts.