From 90c1f3b2a8e6e4398e9d6606c744556a515721c2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Jun 2025 11:10:34 +0200 Subject: [PATCH] randr: re-export RRCrtcDetachScanoutPixmap() for Nvidia legacy NVidia's proprietary driver does it's own randr implementation (why ?) and needs this function for this. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 8 ++++++++ randr/randrstr_priv.h | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index b4122e0a4..b89fb03d2 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -702,6 +702,14 @@ void RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height); _X_EXPORT /* just for Nvidia legacy */ RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc); +/* + * Detach and free a scanout pixmap + * + * @param crtc the CRTC to act on + */ +_X_EXPORT /* just for Nvidia legacy */ +void RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc); + #endif /* _RANDRSTR_H_ */ /* diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index e1dfee905..8afbbee92 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -208,13 +208,6 @@ Bool RRCrtcInit(void); */ void RRCrtcInitErrorValue(void); -/* - * Detach and free a scanout pixmap - * - * @param crtc the CRTC to act on - */ -void RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc); - /* * Handler for the ReplaceScanoutPixmap screen proc * Should not be called directly.