diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index ac853eab6..d1a51f0aa 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -689,6 +689,12 @@ rrCheckPixmapBounding(ScreenPtr pScreen, new_width = newsize->x2; new_height = newsize->y2; + if (new_width < screen_pixmap->drawable.width) + new_width = screen_pixmap->drawable.width; + + if (new_height < screen_pixmap->drawable.height) + new_height = screen_pixmap->drawable.height; + if (new_width == screen_pixmap->drawable.width && new_height == screen_pixmap->drawable.height) { } else {