From 02a88519a29fb774d6bbdab4df57858bda0f09ff Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 22 Jul 2025 14:36:03 +0200 Subject: [PATCH] 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 --- hw/xfree86/common/xf86Events.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index d8d05e30a9..2fcc2ada0b 100644 --- a/hw/xfree86/common/xf86Events.c +++ b/hw/xfree86/common/xf86Events.c @@ -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,