mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 12:25:07 +00:00
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:
committed by
Enrico Weigelt
parent
42daf8e53e
commit
02a88519a2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user