Commit 12358d64 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

nxagent: remove another xprint renmant

reqeuestingClient was dropped with the XPRINT drop. Unfortunetely we are usign it in Image.c. So let's introduce nxagentRequestingClient as replacement for now.
parent 662708b3
......@@ -391,7 +391,6 @@ Dispatch(void)
}
isItTimeToYield = FALSE;
requestingClient = client;
start_tick = SmartScheduleTime;
while (!isItTimeToYield)
{
......@@ -447,7 +446,6 @@ Dispatch(void)
client = clients[clientReady[nready]];
if (client)
client->smart_stop_tick = SmartScheduleTime;
requestingClient = NULL;
}
dispatchException &= ~DE_PRIORITYCHANGE;
}
......
......@@ -2178,12 +2178,6 @@ FontResolutionPtr
GetClientResolutions (int *num)
#endif /* HAS_XFONT2 */
{
if (requestingClient && requestingClient->fontResFunc != NULL &&
!requestingClient->clientGone)
{
return (*requestingClient->fontResFunc)(requestingClient, num);
}
else {
static struct _FontResolution res;
ScreenPtr pScreen;
......@@ -2205,7 +2199,6 @@ GetClientResolutions (int *num)
res.point_size = 120;
*num = 1;
return &res;
}
}
#ifndef HAS_XFONT2
......
......@@ -141,7 +141,6 @@ Bool loadableFonts = FALSE;
CursorPtr rootCursor;
Bool blackRoot=FALSE;
Bool whiteRoot=FALSE;
ClientPtr requestingClient; /* XXX this should be obsolete now, remove? */
TimeStamp currentTime;
TimeStamp lastDeviceEventTime;
......
......@@ -99,6 +99,7 @@ extern void nxagentBitOrderInvert(unsigned char *, int);
extern void nxagentTwoByteSwap(unsigned char *, register int);
extern void nxagentFourByteSwap(register unsigned char *, register int);
extern ClientPtr nxagentRequestingClient;
/*
* Store the last visual used to unpack the images for the given
* client.
......@@ -1073,7 +1074,7 @@ void nxagentPutSubImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
/*
FIXME: Should use an unpack resource here.
*/
client = requestingClient;
client = nxagentRequestingClient;
if (client == NULL)
{
......
......@@ -200,6 +200,12 @@ extern int nxagentMaxSelections;
extern int nxOpenFont(ClientPtr, XID, Mask, unsigned, char*);
/*
* This used to be a dix variable used only by XPRINT, so xorg dropped it.
*/
ClientPtr nxagentRequestingClient;
void
InitSelections(void)
{
......@@ -413,7 +419,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
}
isItTimeToYield = FALSE;
requestingClient = client;
#ifdef NXAGENT_SERVER
nxagentRequestingClient = client;
#endif
start_tick = SmartScheduleTime;
while (!isItTimeToYield)
{
......@@ -528,7 +536,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
client = clients[clientReady[nready]];
if (client)
client->smart_stop_tick = SmartScheduleTime;
requestingClient = NULL;
#ifdef NXAGENT_SERVER
nxagentRequestingClient = NULL;
#endif
}
dispatchException &= ~DE_PRIORITYCHANGE;
}
......
......@@ -265,7 +265,6 @@ typedef struct _Client *ClientPtr; /* also in misc.h */
typedef struct _WorkQueue *WorkQueuePtr;
extern ClientPtr requestingClient;
extern ClientPtr *clients;
extern ClientPtr serverClient;
extern int currentMaxClients;
......
......@@ -57,7 +57,6 @@ implied warranty.
#include "pixmapstr.h"
#include <X11/fonts/fontstruct.h>
#include "dixfontstr.h"
#include "dixstruct.h" /* For requestingClient */
#include "mi.h"
#include "mibstorest.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment