randr: fix prime sync atom not created correctly

The commit 30cec78 incorrectly changed RRInitPrimeSyncProps to not
create the atom if it doesn't exist.

Signed-off-by: dec05eba <dec05eba@protonmail.com>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
dec05eba
2025-07-23 18:59:29 +02:00
committed by Enrico Weigelt
parent 093286b434
commit 7ab50432ba

View File

@@ -275,7 +275,7 @@ RRInitPrimeSyncProps(ScreenPtr pScreen)
rrScrPrivPtr pScrPriv = rrGetScrPriv(pScreen);
const char *syncStr = PRIME_SYNC_PROP;
Atom syncProp = dixGetAtomID(syncStr);
Atom syncProp = dixAddAtom(syncStr);
int defaultVal = TRUE;
INT32 validVals[2] = {FALSE, TRUE};