xserver-multidpi/render
Adam Jackson ba2432a020 xfixes: Forbid manipulating clip for source-only pictures (#28968)
Just throw BadPicture instead of crashing.  It's not currently a
meaningful thing to do anyway, RenderSetPictureRectangles would error if
you tried (which this patch changes to BadPicture as well for
consistency).  The problem with trying to do it is if the clip is
specified as a pixmap then we try to convert it to a region, and
->BitmapToRegion requires a ScreenPtr, and source-only pictures don't
have one.

I can imagine a use for client clip on source-only pictures, so if we
really wanted to allow this, probably the way forward is to always store
the clip as a region internally, and when setting the clip _from_ a
pixmap, look up BitmapToRegion relative to the pixmap not the picture.
But since clearly nobody can be relying on it working...

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2014-04-22 07:50:17 -07:00
..
animcur.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
filter.c Only free Render filter names on last screen close 2012-08-14 17:12:21 -07:00
glyph.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
glyphstr.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
Makefile.am render: Delete renderedge.[ch] 2010-11-01 22:54:18 -04:00
matrix.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
miindex.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mipict.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
mipict.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
mirect.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
mitrap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mitri.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
picture.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
picture.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
picturestr.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
render.c xfixes: Forbid manipulating clip for source-only pictures (#28968) 2014-04-22 07:50:17 -07:00