xserver-multidpi/composite
Adam Jackson 0a73e7bf10 composite: Make compIsAlternateVisual safe even if Composite is off
As of ea483af9 we're calling this unconditionally from the GLX code so
the synthetic visual is in a lower select group. If Composite has been
disabled then GetCompScreen() will return NULL, and this would crash.

Rather than force the caller to check first, just always return FALSE if
Composite is disabled (which is correct, since none of the visuals will
be synthetic in that case).

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
(cherry picked from commit f80119120c)
2017-12-20 15:20:43 -05:00
..
compalloc.c composite: Fix repaint of borders (v2) 2017-01-11 15:00:47 -05:00
compext.c res: Fix accounting of redirected window pixmaps for Composite 2016-06-21 11:11:49 -04:00
compinit.c composite: Factor out backing store transition 2015-09-24 13:01:51 -04:00
compint.h composite: Fix repaint of borders (v2) 2017-01-11 15:00:47 -05:00
compositeext.h composite: Export compIsAlternateVisual 2017-12-20 15:20:43 -05:00
compoverlay.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
compwindow.c composite: Make compIsAlternateVisual safe even if Composite is off 2017-12-20 15:20:43 -05:00
Makefile.am Export CompositeRegisterAlternateVisuals. 2009-04-27 13:29:40 -07:00