mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 08:10:03 +01:00
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>
(cherry picked from commit 21b3dad238)
This commit is contained in:
parent
97233c9858
commit
8ff3832763
3 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue