Allow disabling the SHAPE extension at runtime
To correctly render a window making use of SHAPE, a compositor must query the shape rectangles. This may not be a desirable feature for a Wayland compositor. Allow SHAPE to be turned off at runtime, so that the compositor can opt-out. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
6f0b9deed6
commit
21b3dad238
|
@ -108,6 +108,7 @@ extern _X_EXPORT Bool noScreenSaverExtension;
|
||||||
extern void ScreenSaverExtensionInit(void);
|
extern void ScreenSaverExtensionInit(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern _X_EXPORT Bool noShapeExtension;
|
||||||
extern void ShapeExtensionInit(void);
|
extern void ShapeExtensionInit(void);
|
||||||
|
|
||||||
#ifdef MITSHM
|
#ifdef MITSHM
|
||||||
|
|
|
@ -109,7 +109,7 @@ SOFTWARE.
|
||||||
/* List of built-in (statically linked) extensions */
|
/* List of built-in (statically linked) extensions */
|
||||||
static const ExtensionModule staticExtensions[] = {
|
static const ExtensionModule staticExtensions[] = {
|
||||||
{GEExtensionInit, "Generic Event Extension", &noGEExtension},
|
{GEExtensionInit, "Generic Event Extension", &noGEExtension},
|
||||||
{ShapeExtensionInit, "SHAPE", NULL},
|
{ShapeExtensionInit, "SHAPE", &noShapeExtension},
|
||||||
#ifdef MITSHM
|
#ifdef MITSHM
|
||||||
{ShmExtensionInit, "MIT-SHM", &noMITShmExtension},
|
{ShmExtensionInit, "MIT-SHM", &noMITShmExtension},
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -143,6 +143,7 @@ Bool noMITShmExtension = FALSE;
|
||||||
Bool noRRExtension = FALSE;
|
Bool noRRExtension = FALSE;
|
||||||
#endif
|
#endif
|
||||||
Bool noRenderExtension = FALSE;
|
Bool noRenderExtension = FALSE;
|
||||||
|
Bool noShapeExtension = FALSE;
|
||||||
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
Bool noSecurityExtension = FALSE;
|
Bool noSecurityExtension = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue