mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +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);
|
||||
#endif
|
||||
|
||||
extern _X_EXPORT Bool noShapeExtension;
|
||||
extern void ShapeExtensionInit(void);
|
||||
|
||||
#ifdef MITSHM
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ SOFTWARE.
|
|||
/* List of built-in (statically linked) extensions */
|
||||
static const ExtensionModule staticExtensions[] = {
|
||||
{GEExtensionInit, "Generic Event Extension", &noGEExtension},
|
||||
{ShapeExtensionInit, "SHAPE", NULL},
|
||||
{ShapeExtensionInit, "SHAPE", &noShapeExtension},
|
||||
#ifdef MITSHM
|
||||
{ShmExtensionInit, "MIT-SHM", &noMITShmExtension},
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@ Bool noMITShmExtension = FALSE;
|
|||
Bool noRRExtension = FALSE;
|
||||
#endif
|
||||
Bool noRenderExtension = FALSE;
|
||||
Bool noShapeExtension = FALSE;
|
||||
|
||||
#ifdef XCSECURITY
|
||||
Bool noSecurityExtension = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue