Enrico Weigelt, metux IT consult
40fd6c4816
Xext: xv: actually set the resources_initialized guard
...
Commit 75b627ed7e ("Xv: make creation of resource types independent
from serverGeneration") added a resources_initialized flag to make
CreateResourceTypes() idempotent and early-returns on it, but never
sets it to true -- so the guard never trips and the body runs on every
call.
Today this is masked: the per-serverGeneration guards in
XvExtensionInit()/XvScreenInit() still ensure CreateResourceTypes() is
only reached once. But the flag is meant to be the real guard ("can be
called from different angles"), and without the write each extra call
re-runs all six CreateNewResourceType() calls, allocating fresh RESTYPE
ids (leaking the finite id space) and reassigning the XvRT* globals.
Set the flag once the resource types have been created successfully.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-26 21:35:02 +02:00
..
bigreq
Xext: bigreq: move it into it's own subdir
2026-06-18 13:07:15 +02:00
composite
treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
2026-06-25 14:06:17 +02:00
damage
Xext: parentheses around macro argument symbols
2026-06-25 07:37:12 +02:00
doublebuffer
treewide: clean up includes of misc.h
2026-06-19 19:24:57 +02:00
dpms
Xext: dpms: drop internal resource type
2026-06-25 11:09:12 +02:00
dri2
Xext: parentheses around macro argument symbols
2026-06-25 07:37:12 +02:00
dri3
dri3: parentheses around macro argument symbols
2026-06-25 10:18:33 +02:00
geext
Xext: geext: move it into its own subdir
2026-06-18 14:07:18 +02:00
glx
glx: drop now-unused reply macros from unpack.h
2026-06-26 19:34:14 +02:00
namespace
Xext: parentheses around macro argument symbols
2026-06-25 07:37:12 +02:00
panoramiX
treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
2026-06-25 14:06:17 +02:00
present
present: rename wrap()/unwrap() macros and move them into their only consumer.
2026-06-25 15:04:38 +02:00
pseudoramiX
pseudoramiX: move it under Xext/
2026-06-17 08:38:34 +02:00
randr
treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
2026-06-25 14:06:17 +02:00
record
treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
2026-06-25 14:06:17 +02:00
render
treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
2026-06-25 14:06:17 +02:00
saver
dix: add dixAnyOtherGrabbed() and unexport GrabInProgress
2026-06-25 15:31:46 +02:00
security
Xext: move some calls with return on error into macros
2026-06-24 19:23:43 +02:00
shape
Xext: move some calls with return on error into macros
2026-06-24 19:23:43 +02:00
shm
Xext: parentheses around macro argument symbols
2026-06-25 07:37:12 +02:00
sync
Xext: parentheses around macro argument symbols
2026-06-25 07:37:12 +02:00
xcmisc
treewide: clean up includes of misc.h
2026-06-19 19:24:57 +02:00
xf86bigfont
Xext: parentheses around macro argument symbols
2026-06-25 07:37:12 +02:00
xfixes
treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
2026-06-25 14:06:17 +02:00
xinput
treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
2026-06-25 14:06:17 +02:00
xkeyboard
xkb: parentheses around macro argument symbols
2026-06-25 06:55:06 +02:00
xres
treewide: clean up includes of misc.h
2026-06-19 19:24:57 +02:00
xselinux
Xext: move some calls with return on error into macros
2026-06-24 19:23:43 +02:00
xtest
Xext: move some calls with return on error into macros
2026-06-24 19:23:43 +02:00
xv
Xext: xv: actually set the resources_initialized guard
2026-06-26 21:35:02 +02:00
hashtable.c
treewide: clean up includes of misc.h
2026-06-19 19:24:57 +02:00
hashtable.h
meson.build
Xext: move sleepuntil.c to dix
2026-06-19 09:37:22 +02:00
xace.c
xace.h
treewide: don't include <region.h> anymore
2025-11-27 19:27:27 +01:00
xacestr.h