From ec7a89a92cec9f764742a41b9ba62baba4059e9a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Jun 2025 11:25:33 +0200 Subject: [PATCH] randr: re-export RRClientKnowsRates() 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 | 10 ++++++++++ randr/randrstr_priv.h | 9 --------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index 086eb0d95..c5feb82ff 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -731,6 +731,16 @@ RRProviderPtr RRProviderCreate(ScreenPtr pScreen, const char *name, _X_EXPORT /* just for Nvidia legacy */ void RRProviderSetCapabilities(RRProviderPtr provider, uint32_t capabilities); +/* + * Check whether client is operating on recent enough protocol version + * to know about refresh rates. This has influence on reply packet formats + * + * @param pClient the client to check + * @return TRUE if client using recent enough protocol version + */ +_X_EXPORT /* just for Nvidia legacy */ +Bool RRClientKnowsRates(ClientPtr pClient); + #endif /* _RANDRSTR_H_ */ /* diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index 5dae17171..ce3c6d9f0 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -222,15 +222,6 @@ Bool RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enabl */ Bool RRHasScanoutPixmap(ScreenPtr pScreen); -/* - * Check whether client is operating on recent enough protocol version - * to know about refresh rates. This has influence on reply packet formats - * - * @param pClient the client to check - * @return TRUE if client using recent enough protocol version - */ -Bool RRClientKnowsRates(ClientPtr pClient); - /* * Called by DIX to notify RANDR extension that a lease had been terminated. *