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) ...@@ -391,7 +391,6 @@ Dispatch(void)
} }
isItTimeToYield = FALSE; isItTimeToYield = FALSE;
requestingClient = client;
start_tick = SmartScheduleTime; start_tick = SmartScheduleTime;
while (!isItTimeToYield) while (!isItTimeToYield)
{ {
...@@ -447,7 +446,6 @@ Dispatch(void) ...@@ -447,7 +446,6 @@ Dispatch(void)
client = clients[clientReady[nready]]; client = clients[clientReady[nready]];
if (client) if (client)
client->smart_stop_tick = SmartScheduleTime; client->smart_stop_tick = SmartScheduleTime;
requestingClient = NULL;
} }
dispatchException &= ~DE_PRIORITYCHANGE; dispatchException &= ~DE_PRIORITYCHANGE;
} }
......
...@@ -2178,12 +2178,6 @@ FontResolutionPtr ...@@ -2178,12 +2178,6 @@ FontResolutionPtr
GetClientResolutions (int *num) GetClientResolutions (int *num)
#endif /* HAS_XFONT2 */ #endif /* HAS_XFONT2 */
{ {
if (requestingClient && requestingClient->fontResFunc != NULL &&
!requestingClient->clientGone)
{
return (*requestingClient->fontResFunc)(requestingClient, num);
}
else {
static struct _FontResolution res; static struct _FontResolution res;
ScreenPtr pScreen; ScreenPtr pScreen;
...@@ -2205,7 +2199,6 @@ GetClientResolutions (int *num) ...@@ -2205,7 +2199,6 @@ GetClientResolutions (int *num)
res.point_size = 120; res.point_size = 120;
*num = 1; *num = 1;
return &res; return &res;
}
} }
#ifndef HAS_XFONT2 #ifndef HAS_XFONT2
......
...@@ -141,7 +141,6 @@ Bool loadableFonts = FALSE; ...@@ -141,7 +141,6 @@ Bool loadableFonts = FALSE;
CursorPtr rootCursor; CursorPtr rootCursor;
Bool blackRoot=FALSE; Bool blackRoot=FALSE;
Bool whiteRoot=FALSE; Bool whiteRoot=FALSE;
ClientPtr requestingClient; /* XXX this should be obsolete now, remove? */
TimeStamp currentTime; TimeStamp currentTime;
TimeStamp lastDeviceEventTime; TimeStamp lastDeviceEventTime;
......
...@@ -99,6 +99,7 @@ extern void nxagentBitOrderInvert(unsigned char *, int); ...@@ -99,6 +99,7 @@ extern void nxagentBitOrderInvert(unsigned char *, int);
extern void nxagentTwoByteSwap(unsigned char *, register int); extern void nxagentTwoByteSwap(unsigned char *, register int);
extern void nxagentFourByteSwap(register 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 * Store the last visual used to unpack the images for the given
* client. * client.
...@@ -1073,7 +1074,7 @@ void nxagentPutSubImage(DrawablePtr pDrawable, GCPtr pGC, int depth, ...@@ -1073,7 +1074,7 @@ void nxagentPutSubImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
/* /*
FIXME: Should use an unpack resource here. FIXME: Should use an unpack resource here.
*/ */
client = requestingClient; client = nxagentRequestingClient;
if (client == NULL) if (client == NULL)
{ {
......
...@@ -200,6 +200,12 @@ extern int nxagentMaxSelections; ...@@ -200,6 +200,12 @@ extern int nxagentMaxSelections;
extern int nxOpenFont(ClientPtr, XID, Mask, unsigned, char*); 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 void
InitSelections(void) InitSelections(void)
{ {
...@@ -413,7 +419,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio ...@@ -413,7 +419,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
} }
isItTimeToYield = FALSE; isItTimeToYield = FALSE;
requestingClient = client; #ifdef NXAGENT_SERVER
nxagentRequestingClient = client;
#endif
start_tick = SmartScheduleTime; start_tick = SmartScheduleTime;
while (!isItTimeToYield) while (!isItTimeToYield)
{ {
...@@ -528,7 +536,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio ...@@ -528,7 +536,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
client = clients[clientReady[nready]]; client = clients[clientReady[nready]];
if (client) if (client)
client->smart_stop_tick = SmartScheduleTime; client->smart_stop_tick = SmartScheduleTime;
requestingClient = NULL; #ifdef NXAGENT_SERVER
nxagentRequestingClient = NULL;
#endif
} }
dispatchException &= ~DE_PRIORITYCHANGE; dispatchException &= ~DE_PRIORITYCHANGE;
} }
......
...@@ -265,7 +265,6 @@ typedef struct _Client *ClientPtr; /* also in misc.h */ ...@@ -265,7 +265,6 @@ typedef struct _Client *ClientPtr; /* also in misc.h */
typedef struct _WorkQueue *WorkQueuePtr; typedef struct _WorkQueue *WorkQueuePtr;
extern ClientPtr requestingClient;
extern ClientPtr *clients; extern ClientPtr *clients;
extern ClientPtr serverClient; extern ClientPtr serverClient;
extern int currentMaxClients; extern int currentMaxClients;
......
...@@ -57,7 +57,6 @@ implied warranty. ...@@ -57,7 +57,6 @@ implied warranty.
#include "pixmapstr.h" #include "pixmapstr.h"
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
#include "dixfontstr.h" #include "dixfontstr.h"
#include "dixstruct.h" /* For requestingClient */
#include "mi.h" #include "mi.h"
#include "mibstorest.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