xwin: use NULL instead of NullClient

No need to have another name for NULL, we can use NULL directly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-16 12:03:32 +02:00
committed by Enrico Weigelt
parent 1975ae8a5f
commit 1d1ae20e75
3 changed files with 3 additions and 3 deletions

View File

@@ -734,7 +734,7 @@ glxWinCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
GLWIN_TRACE_MSG("glxWinCopyWindow pWindow %p", pWindow);
dixLookupResourceByType((void *) &pGlxDraw, pWindow->drawable.id,
__glXDrawableRes, NullClient, DixUnknownAccess);
__glXDrawableRes, NULL, DixUnknownAccess);
/*
Discard any CopyWindow requests if a GL drawing context is pointing at the window

View File

@@ -180,7 +180,7 @@ winUninstallColormap(ColormapPtr pmap)
/* Install the default cmap in place of the cmap to be uninstalled */
if (pmap->mid != pmap->pScreen->defColormap) {
dixLookupResourceByType((void *) &curpmap, pmap->pScreen->defColormap,
X11_RESTYPE_COLORMAP, NullClient, DixUnknownAccess);
X11_RESTYPE_COLORMAP, NULL, DixUnknownAccess);
(*pmap->pScreen->InstallColormap) (curpmap);
}
}

View File

@@ -230,7 +230,7 @@ winDisplayExitDialog(winPrivScreenPtr pScreenPriv)
/* Count up running clients (clients[0] is serverClient) */
for (i = 1; i < currentMaxClients; i++)
if (clients[i] != NullClient)
if (clients[i] != NULL)
liveClients++;
/* Count down server internal clients */
if (pScreenPriv->pScreenInfo->fMultiWindow)