xfree86: xf86UpdateHasVTProperty(): always create atom

No need to have extra check for whether the Atom already exists,
just create it on demand.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-22 14:36:03 +02:00
committed by Enrico Weigelt
parent 42daf8e53e
commit 02a88519a2

View File

@@ -324,14 +324,10 @@ xf86EnableInputDeviceForVTSwitch(InputInfoPtr pInfo)
static void
xf86UpdateHasVTProperty(Bool hasVT)
{
Atom property_name;
int32_t value = hasVT ? 1 : 0;
int i;
property_name = MakeAtom(HAS_VT_ATOM_NAME, sizeof(HAS_VT_ATOM_NAME) - 1,
FALSE);
if (property_name == BAD_RESOURCE)
FatalError("Failed to retrieve \"HAS_VT\" atom\n");
Atom property_name = MakeAtom(HAS_VT_ATOM_NAME, sizeof(HAS_VT_ATOM_NAME)-1, TRUE);
for (i = 0; i < xf86NumScreens; i++) {
dixChangeWindowProperty(serverClient,
xf86ScrnToScreen(xf86Screens[i])->root,