xnest: use dixAddAtom()

Use the new helper for creating atoms 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 15:20:32 +02:00 committed by Enrico Weigelt
parent 77a91598fe
commit 9217a30960

View File

@ -22,6 +22,8 @@ is" without express or implied warranty.
#include <X11/fonts/fontstruct.h>
#include <X11/fonts/libxfont2.h>
#include "dix/dix_priv.h"
#include "misc.h"
#include "regionstr.h"
#include "dixfontstr.h"
@ -37,7 +39,6 @@ int xnestFontPrivateIndex;
Bool
xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont)
{
Atom name_atom, value_atom;
int nprops;
FontPropPtr props;
int i;
@ -45,8 +46,8 @@ xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont)
xfont2_font_set_private(pFont, xnestFontPrivateIndex, NULL);
name_atom = MakeAtom("FONT", 4, TRUE);
value_atom = 0L;
Atom name_atom = dixAddAtom("FONT");
Atom value_atom = 0L;
nprops = pFont->info.nprops;
props = pFont->info.props;