Commit feb7b977 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

nxagent: make nxagentXFixesInfo.Initialized a Boolean

parent b76dddcd
...@@ -225,7 +225,7 @@ const char * getXErrorString(int code) ...@@ -225,7 +225,7 @@ const char * getXErrorString(int code)
* Save the values queried from X server. * Save the values queried from X server.
*/ */
XFixesAgentInfoRec nxagentXFixesInfo = { -1, -1, -1, 0 }; XFixesAgentInfoRec nxagentXFixesInfo = { -1, -1, -1, False };
extern Display *nxagentDisplay; extern Display *nxagentDisplay;
...@@ -2234,7 +2234,7 @@ Bool nxagentInitClipboard(WindowPtr pWin) ...@@ -2234,7 +2234,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
XFixesSelectionClientCloseNotifyMask); XFixesSelectionClientCloseNotifyMask);
} }
nxagentXFixesInfo.Initialized = 1; nxagentXFixesInfo.Initialized = True;
} }
/* /*
......
...@@ -35,7 +35,7 @@ typedef struct _XFixesAgentInfo ...@@ -35,7 +35,7 @@ typedef struct _XFixesAgentInfo
int Opcode; int Opcode;
int EventBase; int EventBase;
int ErrorBase; int ErrorBase;
int Initialized; Bool Initialized;
} XFixesAgentInfoRec; } XFixesAgentInfoRec;
extern XFixesAgentInfoRec nxagentXFixesInfo; extern XFixesAgentInfoRec nxagentXFixesInfo;
......
...@@ -2831,7 +2831,7 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X) ...@@ -2831,7 +2831,7 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
{ {
XFixesSelectionEvent *xfixesEvent = (XFixesSelectionEvent *) X; XFixesSelectionEvent *xfixesEvent = (XFixesSelectionEvent *) X;
if (nxagentXFixesInfo.Initialized == 0) if (!nxagentXFixesInfo.Initialized)
{ {
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "%s: XFixes not initialized - doing nothing.\n", __func__); fprintf(stderr, "%s: XFixes not initialized - doing nothing.\n", __func__);
......
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