Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
061c3577
Unverified
Commit
061c3577
authored
Dec 28, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/reduce_uninitialised' into 3.6.x
parents
bc5f9a23
6acbfab3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
86 additions
and
104 deletions
+86
-104
glxcmds.c
nx-X11/programs/Xserver/GL/glx/glxcmds.c
+14
-14
dpms.c
nx-X11/programs/Xserver/Xext/dpms.c
+4
-4
shape.c
nx-X11/programs/Xserver/Xext/shape.c
+9
-9
xtest.c
nx-X11/programs/Xserver/Xext/xtest.c
+2
-2
colormap.c
nx-X11/programs/Xserver/dix/colormap.c
+3
-3
devices.c
nx-X11/programs/Xserver/dix/devices.c
+3
-2
dispatch.c
nx-X11/programs/Xserver/dix/dispatch.c
+35
-45
pixmap.c
nx-X11/programs/Xserver/dix/pixmap.c
+2
-2
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+1
-1
NXwindow.c
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
+6
-11
miexpose.c
nx-X11/programs/Xserver/mi/miexpose.c
+6
-10
xkb.c
nx-X11/programs/Xserver/xkb/xkb.c
+1
-1
No files found.
nx-X11/programs/Xserver/GL/glx/glxcmds.c
View file @
061c3577
...
@@ -510,7 +510,7 @@ int DoMakeCurrent( __GLXclientState *cl,
...
@@ -510,7 +510,7 @@ int DoMakeCurrent( __GLXclientState *cl,
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
DrawablePtr
pDraw
;
DrawablePtr
pDraw
;
DrawablePtr
pRead
;
DrawablePtr
pRead
;
xGLXMakeCurrentReply
reply
;
xGLXMakeCurrentReply
reply
=
{
0
}
;
__GLXpixmap
*
drawPixmap
=
NULL
;
__GLXpixmap
*
drawPixmap
=
NULL
;
__GLXpixmap
*
readPixmap
=
NULL
;
__GLXpixmap
*
readPixmap
=
NULL
;
__GLXcontext
*
glxc
,
*
prevglxc
;
__GLXcontext
*
glxc
,
*
prevglxc
;
...
@@ -745,7 +745,7 @@ int __glXIsDirect(__GLXclientState *cl, GLbyte *pc)
...
@@ -745,7 +745,7 @@ int __glXIsDirect(__GLXclientState *cl, GLbyte *pc)
{
{
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXIsDirectReq
*
req
=
(
xGLXIsDirectReq
*
)
pc
;
xGLXIsDirectReq
*
req
=
(
xGLXIsDirectReq
*
)
pc
;
xGLXIsDirectReply
reply
;
xGLXIsDirectReply
reply
=
{
0
}
;
__GLXcontext
*
glxc
;
__GLXcontext
*
glxc
;
/*
/*
...
@@ -775,7 +775,7 @@ int __glXQueryVersion(__GLXclientState *cl, GLbyte *pc)
...
@@ -775,7 +775,7 @@ int __glXQueryVersion(__GLXclientState *cl, GLbyte *pc)
{
{
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXQueryVersionReq
*
req
=
(
xGLXQueryVersionReq
*
)
pc
;
xGLXQueryVersionReq
*
req
=
(
xGLXQueryVersionReq
*
)
pc
;
xGLXQueryVersionReply
reply
;
xGLXQueryVersionReply
reply
=
{
0
}
;
GLuint
major
,
minor
;
GLuint
major
,
minor
;
major
=
req
->
majorVersion
;
major
=
req
->
majorVersion
;
...
@@ -921,10 +921,10 @@ int DoGetVisualConfigs(__GLXclientState *cl, unsigned screen,
...
@@ -921,10 +921,10 @@ int DoGetVisualConfigs(__GLXclientState *cl, unsigned screen,
GLboolean
do_swap
)
GLboolean
do_swap
)
{
{
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXGetVisualConfigsReply
reply
;
xGLXGetVisualConfigsReply
reply
=
{
0
}
;
__GLXscreenInfo
*
pGlxScreen
;
__GLXscreenInfo
*
pGlxScreen
;
__GLcontextModes
*
modes
;
__GLcontextModes
*
modes
;
CARD32
buf
[
__GLX_TOTAL_CONFIG
];
CARD32
buf
[
__GLX_TOTAL_CONFIG
]
=
{
0
}
;
int
p
;
int
p
;
__GLX_DECLARE_SWAP_VARIABLES
;
__GLX_DECLARE_SWAP_VARIABLES
;
__GLX_DECLARE_SWAP_ARRAY_VARIABLES
;
__GLX_DECLARE_SWAP_ARRAY_VARIABLES
;
...
@@ -1029,7 +1029,7 @@ int __glXGetVisualConfigs(__GLXclientState *cl, GLbyte *pc)
...
@@ -1029,7 +1029,7 @@ int __glXGetVisualConfigs(__GLXclientState *cl, GLbyte *pc)
int
DoGetFBConfigs
(
__GLXclientState
*
cl
,
unsigned
screen
,
GLboolean
do_swap
)
int
DoGetFBConfigs
(
__GLXclientState
*
cl
,
unsigned
screen
,
GLboolean
do_swap
)
{
{
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXGetFBConfigsReply
reply
;
xGLXGetFBConfigsReply
reply
=
{
0
}
;
__GLXscreenInfo
*
pGlxScreen
;
__GLXscreenInfo
*
pGlxScreen
;
CARD32
buf
[
__GLX_FBCONFIG_ATTRIBS_LENGTH
];
CARD32
buf
[
__GLX_FBCONFIG_ATTRIBS_LENGTH
];
int
p
;
int
p
;
...
@@ -1365,7 +1365,7 @@ int __glXQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc)
...
@@ -1365,7 +1365,7 @@ int __glXQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc)
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
__GLXcontext
*
ctx
;
__GLXcontext
*
ctx
;
xGLXQueryContextInfoEXTReq
*
req
;
xGLXQueryContextInfoEXTReq
*
req
;
xGLXQueryContextInfoEXTReply
reply
;
xGLXQueryContextInfoEXTReply
reply
=
{
0
}
;
int
nProps
;
int
nProps
;
int
*
sendBuf
,
*
pSendBuf
;
int
*
sendBuf
,
*
pSendBuf
;
int
nReplyBytes
;
int
nReplyBytes
;
...
@@ -1780,7 +1780,7 @@ static int __glXQueryMaxSwapBarriersSGIX(__GLXclientState *cl, GLbyte *pc)
...
@@ -1780,7 +1780,7 @@ static int __glXQueryMaxSwapBarriersSGIX(__GLXclientState *cl, GLbyte *pc)
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXQueryMaxSwapBarriersSGIXReq
*
req
=
xGLXQueryMaxSwapBarriersSGIXReq
*
req
=
(
xGLXQueryMaxSwapBarriersSGIXReq
*
)
pc
;
(
xGLXQueryMaxSwapBarriersSGIXReq
*
)
pc
;
xGLXQueryMaxSwapBarriersSGIXReply
reply
;
xGLXQueryMaxSwapBarriersSGIXReply
reply
=
{
0
}
;
int
screen
=
req
->
screen
;
int
screen
=
req
->
screen
;
if
(
__glXSwapBarrierFuncs
&&
if
(
__glXSwapBarrierFuncs
&&
...
@@ -1810,7 +1810,7 @@ static int __glxQueryHyperpipeNetworkSGIX(__GLXclientState *cl, GLbyte *pc)
...
@@ -1810,7 +1810,7 @@ static int __glxQueryHyperpipeNetworkSGIX(__GLXclientState *cl, GLbyte *pc)
{
{
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXQueryHyperpipeNetworkSGIXReq
*
req
=
(
xGLXQueryHyperpipeNetworkSGIXReq
*
)
pc
;
xGLXQueryHyperpipeNetworkSGIXReq
*
req
=
(
xGLXQueryHyperpipeNetworkSGIXReq
*
)
pc
;
xGLXQueryHyperpipeNetworkSGIXReply
reply
;
xGLXQueryHyperpipeNetworkSGIXReply
reply
=
{
0
}
;
int
screen
=
req
->
screen
;
int
screen
=
req
->
screen
;
void
*
rdata
=
NULL
;
void
*
rdata
=
NULL
;
...
@@ -1851,7 +1851,7 @@ static int __glxDestroyHyperpipeConfigSGIX (__GLXclientState *cl, GLbyte *pc)
...
@@ -1851,7 +1851,7 @@ static int __glxDestroyHyperpipeConfigSGIX (__GLXclientState *cl, GLbyte *pc)
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXDestroyHyperpipeConfigSGIXReq
*
req
=
xGLXDestroyHyperpipeConfigSGIXReq
*
req
=
(
xGLXDestroyHyperpipeConfigSGIXReq
*
)
pc
;
(
xGLXDestroyHyperpipeConfigSGIXReq
*
)
pc
;
xGLXDestroyHyperpipeConfigSGIXReply
reply
;
xGLXDestroyHyperpipeConfigSGIXReply
reply
=
{
0
}
;
int
screen
=
req
->
screen
;
int
screen
=
req
->
screen
;
int
success
=
GLX_BAD_HYPERPIPE_SGIX
;
int
success
=
GLX_BAD_HYPERPIPE_SGIX
;
int
hpId
;
int
hpId
;
...
@@ -1886,7 +1886,7 @@ static int __glxQueryHyperpipeConfigSGIX(__GLXclientState *cl, GLbyte *pc)
...
@@ -1886,7 +1886,7 @@ static int __glxQueryHyperpipeConfigSGIX(__GLXclientState *cl, GLbyte *pc)
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXQueryHyperpipeConfigSGIXReq
*
req
=
xGLXQueryHyperpipeConfigSGIXReq
*
req
=
(
xGLXQueryHyperpipeConfigSGIXReq
*
)
pc
;
(
xGLXQueryHyperpipeConfigSGIXReq
*
)
pc
;
xGLXQueryHyperpipeConfigSGIXReply
reply
;
xGLXQueryHyperpipeConfigSGIXReply
reply
=
{
0
}
;
int
screen
=
req
->
screen
;
int
screen
=
req
->
screen
;
void
*
rdata
=
NULL
;
void
*
rdata
=
NULL
;
int
length
;
int
length
;
...
@@ -1930,7 +1930,7 @@ static int __glxHyperpipeConfigSGIX(__GLXclientState *cl, GLbyte *pc)
...
@@ -1930,7 +1930,7 @@ static int __glxHyperpipeConfigSGIX(__GLXclientState *cl, GLbyte *pc)
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXHyperpipeConfigSGIXReq
*
req
=
xGLXHyperpipeConfigSGIXReq
*
req
=
(
xGLXHyperpipeConfigSGIXReq
*
)
pc
;
(
xGLXHyperpipeConfigSGIXReq
*
)
pc
;
xGLXHyperpipeConfigSGIXReply
reply
;
xGLXHyperpipeConfigSGIXReply
reply
=
{
0
}
;
int
screen
=
req
->
screen
;
int
screen
=
req
->
screen
;
void
*
rdata
;
void
*
rdata
;
...
@@ -2059,7 +2059,7 @@ int __glXQueryExtensionsString(__GLXclientState *cl, GLbyte *pc)
...
@@ -2059,7 +2059,7 @@ int __glXQueryExtensionsString(__GLXclientState *cl, GLbyte *pc)
{
{
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXQueryExtensionsStringReq
*
req
=
(
xGLXQueryExtensionsStringReq
*
)
pc
;
xGLXQueryExtensionsStringReq
*
req
=
(
xGLXQueryExtensionsStringReq
*
)
pc
;
xGLXQueryExtensionsStringReply
reply
;
xGLXQueryExtensionsStringReply
reply
=
{
0
}
;
GLuint
screen
;
GLuint
screen
;
size_t
n
,
length
;
size_t
n
,
length
;
const
char
*
ptr
;
const
char
*
ptr
;
...
@@ -2104,7 +2104,7 @@ int __glXQueryServerString(__GLXclientState *cl, GLbyte *pc)
...
@@ -2104,7 +2104,7 @@ int __glXQueryServerString(__GLXclientState *cl, GLbyte *pc)
{
{
ClientPtr
client
=
cl
->
client
;
ClientPtr
client
=
cl
->
client
;
xGLXQueryServerStringReq
*
req
=
(
xGLXQueryServerStringReq
*
)
pc
;
xGLXQueryServerStringReq
*
req
=
(
xGLXQueryServerStringReq
*
)
pc
;
xGLXQueryServerStringReply
reply
;
xGLXQueryServerStringReply
reply
=
{
0
}
;
int
name
;
int
name
;
GLuint
screen
;
GLuint
screen
;
size_t
n
,
length
;
size_t
n
,
length
;
...
...
nx-X11/programs/Xserver/Xext/dpms.c
View file @
061c3577
...
@@ -101,7 +101,7 @@ ProcDPMSGetVersion(client)
...
@@ -101,7 +101,7 @@ ProcDPMSGetVersion(client)
register
ClientPtr
client
;
register
ClientPtr
client
;
{
{
/* REQUEST(xDPMSGetVersionReq); */
/* REQUEST(xDPMSGetVersionReq); */
xDPMSGetVersionReply
rep
;
xDPMSGetVersionReply
rep
=
{
0
}
;
REQUEST_SIZE_MATCH
(
xDPMSGetVersionReq
);
REQUEST_SIZE_MATCH
(
xDPMSGetVersionReq
);
...
@@ -123,7 +123,7 @@ static int
...
@@ -123,7 +123,7 @@ static int
ProcDPMSCapable
(
register
ClientPtr
client
)
ProcDPMSCapable
(
register
ClientPtr
client
)
{
{
/* REQUEST(xDPMSCapableReq); */
/* REQUEST(xDPMSCapableReq); */
xDPMSCapableReply
rep
;
xDPMSCapableReply
rep
=
{
0
}
;
REQUEST_SIZE_MATCH
(
xDPMSCapableReq
);
REQUEST_SIZE_MATCH
(
xDPMSCapableReq
);
...
@@ -144,7 +144,7 @@ ProcDPMSGetTimeouts(client)
...
@@ -144,7 +144,7 @@ ProcDPMSGetTimeouts(client)
register
ClientPtr
client
;
register
ClientPtr
client
;
{
{
/* REQUEST(xDPMSGetTimeoutsReq); */
/* REQUEST(xDPMSGetTimeoutsReq); */
xDPMSGetTimeoutsReply
rep
;
xDPMSGetTimeoutsReply
rep
=
{
0
}
;
REQUEST_SIZE_MATCH
(
xDPMSGetTimeoutsReq
);
REQUEST_SIZE_MATCH
(
xDPMSGetTimeoutsReq
);
...
@@ -258,7 +258,7 @@ static int
...
@@ -258,7 +258,7 @@ static int
ProcDPMSInfo
(
register
ClientPtr
client
)
ProcDPMSInfo
(
register
ClientPtr
client
)
{
{
/* REQUEST(xDPMSInfoReq); */
/* REQUEST(xDPMSInfoReq); */
xDPMSInfoReply
rep
;
xDPMSInfoReply
rep
=
{
0
}
;
REQUEST_SIZE_MATCH
(
xDPMSInfoReq
);
REQUEST_SIZE_MATCH
(
xDPMSInfoReq
);
...
...
nx-X11/programs/Xserver/Xext/shape.c
View file @
061c3577
...
@@ -266,7 +266,7 @@ RegionPtr
...
@@ -266,7 +266,7 @@ RegionPtr
CreateBoundingShape
(
pWin
)
CreateBoundingShape
(
pWin
)
WindowPtr
pWin
;
WindowPtr
pWin
;
{
{
BoxRec
extents
;
BoxRec
extents
=
{
0
}
;
extents
.
x1
=
-
wBorderWidth
(
pWin
);
extents
.
x1
=
-
wBorderWidth
(
pWin
);
extents
.
y1
=
-
wBorderWidth
(
pWin
);
extents
.
y1
=
-
wBorderWidth
(
pWin
);
...
@@ -279,7 +279,7 @@ RegionPtr
...
@@ -279,7 +279,7 @@ RegionPtr
CreateClipShape
(
pWin
)
CreateClipShape
(
pWin
)
WindowPtr
pWin
;
WindowPtr
pWin
;
{
{
BoxRec
extents
;
BoxRec
extents
=
{
0
}
;
extents
.
x1
=
0
;
extents
.
x1
=
0
;
extents
.
y1
=
0
;
extents
.
y1
=
0
;
...
@@ -292,7 +292,7 @@ static int
...
@@ -292,7 +292,7 @@ static int
ProcShapeQueryVersion
(
client
)
ProcShapeQueryVersion
(
client
)
register
ClientPtr
client
;
register
ClientPtr
client
;
{
{
xShapeQueryVersionReply
rep
;
xShapeQueryVersionReply
rep
=
{
0
}
;
REQUEST_SIZE_MATCH
(
xShapeQueryVersionReq
);
REQUEST_SIZE_MATCH
(
xShapeQueryVersionReq
);
memset
(
&
rep
,
0
,
sizeof
(
xShapeQueryVersionReply
));
memset
(
&
rep
,
0
,
sizeof
(
xShapeQueryVersionReply
));
...
@@ -713,8 +713,8 @@ ProcShapeQueryExtents (client)
...
@@ -713,8 +713,8 @@ ProcShapeQueryExtents (client)
{
{
REQUEST
(
xShapeQueryExtentsReq
);
REQUEST
(
xShapeQueryExtentsReq
);
WindowPtr
pWin
;
WindowPtr
pWin
;
xShapeQueryExtentsReply
rep
;
xShapeQueryExtentsReply
rep
=
{
0
}
;
BoxRec
extents
,
*
pExtents
;
BoxRec
extents
=
{
0
}
,
*
pExtents
;
RegionPtr
region
;
RegionPtr
region
;
REQUEST_SIZE_MATCH
(
xShapeQueryExtentsReq
);
REQUEST_SIZE_MATCH
(
xShapeQueryExtentsReq
);
...
@@ -919,8 +919,8 @@ SendShapeNotify (pWin, which)
...
@@ -919,8 +919,8 @@ SendShapeNotify (pWin, which)
int
which
;
int
which
;
{
{
ShapeEventPtr
*
pHead
,
pShapeEvent
;
ShapeEventPtr
*
pHead
,
pShapeEvent
;
xShapeNotifyEvent
se
;
xShapeNotifyEvent
se
=
{
0
}
;
BoxRec
extents
;
BoxRec
extents
=
{
0
}
;
RegionPtr
region
;
RegionPtr
region
;
BYTE
shaped
;
BYTE
shaped
;
...
@@ -992,7 +992,7 @@ ProcShapeInputSelected (client)
...
@@ -992,7 +992,7 @@ ProcShapeInputSelected (client)
WindowPtr
pWin
;
WindowPtr
pWin
;
ShapeEventPtr
pShapeEvent
,
*
pHead
;
ShapeEventPtr
pShapeEvent
,
*
pHead
;
int
enabled
;
int
enabled
;
xShapeInputSelectedReply
rep
;
xShapeInputSelectedReply
rep
=
{
0
}
;
REQUEST_SIZE_MATCH
(
xShapeInputSelectedReq
);
REQUEST_SIZE_MATCH
(
xShapeInputSelectedReq
);
pWin
=
LookupWindow
(
stuff
->
window
,
client
);
pWin
=
LookupWindow
(
stuff
->
window
,
client
);
...
@@ -1030,7 +1030,7 @@ ProcShapeGetRectangles (client)
...
@@ -1030,7 +1030,7 @@ ProcShapeGetRectangles (client)
{
{
REQUEST
(
xShapeGetRectanglesReq
);
REQUEST
(
xShapeGetRectanglesReq
);
WindowPtr
pWin
;
WindowPtr
pWin
;
xShapeGetRectanglesReply
rep
;
xShapeGetRectanglesReply
rep
=
{
0
}
;
xRectangle
*
rects
;
xRectangle
*
rects
;
int
nrects
,
i
;
int
nrects
,
i
;
RegionPtr
region
;
RegionPtr
region
;
...
...
nx-X11/programs/Xserver/Xext/xtest.c
View file @
061c3577
...
@@ -111,7 +111,7 @@ static int
...
@@ -111,7 +111,7 @@ static int
ProcXTestGetVersion
(
client
)
ProcXTestGetVersion
(
client
)
register
ClientPtr
client
;
register
ClientPtr
client
;
{
{
xXTestGetVersionReply
rep
;
xXTestGetVersionReply
rep
=
{
0
}
;
REQUEST_SIZE_MATCH
(
xXTestGetVersionReq
);
REQUEST_SIZE_MATCH
(
xXTestGetVersionReq
);
rep
.
type
=
X_Reply
;
rep
.
type
=
X_Reply
;
...
@@ -132,7 +132,7 @@ ProcXTestCompareCursor(client)
...
@@ -132,7 +132,7 @@ ProcXTestCompareCursor(client)
register
ClientPtr
client
;
register
ClientPtr
client
;
{
{
REQUEST
(
xXTestCompareCursorReq
);
REQUEST
(
xXTestCompareCursorReq
);
xXTestCompareCursorReply
rep
;
xXTestCompareCursorReply
rep
=
{
0
}
;
WindowPtr
pWin
;
WindowPtr
pWin
;
CursorPtr
pCursor
;
CursorPtr
pCursor
;
...
...
nx-X11/programs/Xserver/dix/colormap.c
View file @
061c3577
...
@@ -474,7 +474,7 @@ FreeColormap (void * value, XID mid)
...
@@ -474,7 +474,7 @@ FreeColormap (void * value, XID mid)
static
int
static
int
TellNoMap
(
WindowPtr
pwin
,
Colormap
*
pmid
)
TellNoMap
(
WindowPtr
pwin
,
Colormap
*
pmid
)
{
{
xEvent
xE
;
xEvent
xE
=
{
0
}
;
if
(
wColormap
(
pwin
)
==
*
pmid
)
if
(
wColormap
(
pwin
)
==
*
pmid
)
{
{
...
@@ -502,7 +502,7 @@ int
...
@@ -502,7 +502,7 @@ int
TellLostMap
(
WindowPtr
pwin
,
void
*
value
)
TellLostMap
(
WindowPtr
pwin
,
void
*
value
)
{
{
Colormap
*
pmid
=
(
Colormap
*
)
value
;
Colormap
*
pmid
=
(
Colormap
*
)
value
;
xEvent
xE
;
xEvent
xE
=
{
0
}
;
#ifdef PANORAMIX
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
&&
pwin
->
drawable
.
pScreen
->
myNum
)
if
(
!
noPanoramiXExtension
&&
pwin
->
drawable
.
pScreen
->
myNum
)
...
@@ -527,7 +527,7 @@ int
...
@@ -527,7 +527,7 @@ int
TellGainedMap
(
WindowPtr
pwin
,
void
*
value
)
TellGainedMap
(
WindowPtr
pwin
,
void
*
value
)
{
{
Colormap
*
pmid
=
(
Colormap
*
)
value
;
Colormap
*
pmid
=
(
Colormap
*
)
value
;
xEvent
xE
;
xEvent
xE
=
{
0
}
;
#ifdef PANORAMIX
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
&&
pwin
->
drawable
.
pScreen
->
myNum
)
if
(
!
noPanoramiXExtension
&&
pwin
->
drawable
.
pScreen
->
myNum
)
...
...
nx-X11/programs/Xserver/dix/devices.c
View file @
061c3577
...
@@ -1158,7 +1158,8 @@ ProcGetKeyboardMapping(ClientPtr client)
...
@@ -1158,7 +1158,8 @@ ProcGetKeyboardMapping(ClientPtr client)
int
int
ProcGetPointerMapping
(
ClientPtr
client
)
ProcGetPointerMapping
(
ClientPtr
client
)
{
{
xGetPointerMappingReply
rep
;
xGetPointerMappingReply
rep
=
{
0
};
ButtonClassPtr
butc
=
inputInfo
.
pointer
->
button
;
ButtonClassPtr
butc
=
inputInfo
.
pointer
->
button
;
REQUEST_SIZE_MATCH
(
xReq
);
REQUEST_SIZE_MATCH
(
xReq
);
...
@@ -1168,7 +1169,7 @@ ProcGetPointerMapping(ClientPtr client)
...
@@ -1168,7 +1169,7 @@ ProcGetPointerMapping(ClientPtr client)
rep
.
length
=
((
unsigned
)
rep
.
nElts
+
(
4
-
1
))
/
4
;
rep
.
length
=
((
unsigned
)
rep
.
nElts
+
(
4
-
1
))
/
4
;
WriteReplyToClient
(
client
,
sizeof
(
xGetPointerMappingReply
),
&
rep
);
WriteReplyToClient
(
client
,
sizeof
(
xGetPointerMappingReply
),
&
rep
);
WriteToClient
(
client
,
(
int
)
rep
.
nElts
,
&
butc
->
map
[
1
]);
WriteToClient
(
client
,
(
int
)
rep
.
nElts
,
&
butc
->
map
[
1
]);
return
Success
;
return
Success
;
}
}
void
void
...
...
nx-X11/programs/Xserver/dix/dispatch.c
View file @
061c3577
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/dix/pixmap.c
View file @
061c3577
...
@@ -126,7 +126,7 @@ AllocatePixmap(ScreenPtr pScreen, int pixDataSize)
...
@@ -126,7 +126,7 @@ AllocatePixmap(ScreenPtr pScreen, int pixDataSize)
* the pixmap buffer. This may be a RENDER bug.
* the pixmap buffer. This may be a RENDER bug.
*/
*/
pPixmap
=
(
PixmapPtr
)
malloc
(
pScreen
->
totalPixmapSize
+
pixDataSize
+
4
);
pPixmap
=
(
PixmapPtr
)
calloc
(
1
,
pScreen
->
totalPixmapSize
+
pixDataSize
+
4
);
if
(
!
pPixmap
)
if
(
!
pPixmap
)
return
NullPixmap
;
return
NullPixmap
;
ppriv
=
(
DevUnion
*
)(
pPixmap
+
1
);
ppriv
=
(
DevUnion
*
)(
pPixmap
+
1
);
...
@@ -144,7 +144,7 @@ AllocatePixmap(ScreenPtr pScreen, int pixDataSize)
...
@@ -144,7 +144,7 @@ AllocatePixmap(ScreenPtr pScreen, int pixDataSize)
ppriv
->
ptr
=
(
void
*
)
NULL
;
ppriv
->
ptr
=
(
void
*
)
NULL
;
}
}
#else
#else
pPixmap
=
(
PixmapPtr
)
malloc
(
sizeof
(
PixmapRec
)
+
pixDataSize
);
pPixmap
=
(
PixmapPtr
)
calloc
(
1
,
sizeof
(
PixmapRec
)
+
pixDataSize
);
#endif
#endif
return
pPixmap
;
return
pPixmap
;
}
}
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
061c3577
...
@@ -719,7 +719,7 @@ ProcSetSelectionOwner(register ClientPtr client)
...
@@ -719,7 +719,7 @@ ProcSetSelectionOwner(register ClientPtr client)
i
++
;
i
++
;
if
(
i
<
NumCurrentSelections
)
if
(
i
<
NumCurrentSelections
)
{
{
xEvent
event
;
xEvent
event
=
{
0
}
;
/* If the timestamp in client's request is in the past relative
/* If the timestamp in client's request is in the past relative
to the time stamp indicating the last time the owner of the
to the time stamp indicating the last time the owner of the
...
...
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
View file @
061c3577
...
@@ -310,7 +310,6 @@ DeleteWindow(void * value, XID wid)
...
@@ -310,7 +310,6 @@ DeleteWindow(void * value, XID wid)
{
{
register
WindowPtr
pParent
;
register
WindowPtr
pParent
;
register
WindowPtr
pWin
=
(
WindowPtr
)
value
;
register
WindowPtr
pWin
=
(
WindowPtr
)
value
;
xEvent
event
;
UnmapWindow
(
pWin
,
FALSE
);
UnmapWindow
(
pWin
,
FALSE
);
...
@@ -319,7 +318,7 @@ DeleteWindow(void * value, XID wid)
...
@@ -319,7 +318,7 @@ DeleteWindow(void * value, XID wid)
pParent
=
pWin
->
parent
;
pParent
=
pWin
->
parent
;
if
(
wid
&&
pParent
&&
SubStrSend
(
pWin
,
pParent
))
if
(
wid
&&
pParent
&&
SubStrSend
(
pWin
,
pParent
))
{
{
memset
(
&
event
,
0
,
sizeof
(
xEvent
))
;
xEvent
event
=
{
0
}
;
event
.
u
.
u
.
type
=
DestroyNotify
;
event
.
u
.
u
.
type
=
DestroyNotify
;
event
.
u
.
destroyNotify
.
window
=
pWin
->
drawable
.
id
;
event
.
u
.
destroyNotify
.
window
=
pWin
->
drawable
.
id
;
DeliverEvents
(
pWin
,
&
event
,
1
,
NullWindow
);
DeliverEvents
(
pWin
,
&
event
,
1
,
NullWindow
);
...
@@ -371,8 +370,7 @@ ResizeChildrenWinSize(register WindowPtr pWin, int dx, int dy, int dw, int dh)
...
@@ -371,8 +370,7 @@ ResizeChildrenWinSize(register WindowPtr pWin, int dx, int dy, int dw, int dh)
pSib
->
winGravity
,
&
cwsx
,
&
cwsy
);
pSib
->
winGravity
,
&
cwsx
,
&
cwsy
);
if
(
cwsx
!=
pSib
->
origin
.
x
||
cwsy
!=
pSib
->
origin
.
y
)
if
(
cwsx
!=
pSib
->
origin
.
x
||
cwsy
!=
pSib
->
origin
.
y
)
{
{
xEvent
event
;
xEvent
event
=
{
0
};
event
.
u
.
u
.
type
=
GravityNotify
;
event
.
u
.
u
.
type
=
GravityNotify
;
event
.
u
.
gravity
.
window
=
pSib
->
drawable
.
id
;
event
.
u
.
gravity
.
window
=
pSib
->
drawable
.
id
;
event
.
u
.
gravity
.
x
=
cwsx
-
wBorderWidth
(
pSib
);
event
.
u
.
gravity
.
x
=
cwsx
-
wBorderWidth
(
pSib
);
...
@@ -450,7 +448,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
...
@@ -450,7 +448,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
h
=
pWin
->
drawable
.
height
,
h
=
pWin
->
drawable
.
height
,
bw
=
pWin
->
borderWidth
;
bw
=
pWin
->
borderWidth
;
int
action
,
smode
=
Above
;
int
action
,
smode
=
Above
;
xEvent
event
;
xEvent
event
=
{
0
}
;
if
((
pWin
->
drawable
.
class
==
InputOnly
)
&&
(
mask
&
IllegalInputOnlyConfigureMask
))
if
((
pWin
->
drawable
.
class
==
InputOnly
)
&&
(
mask
&
IllegalInputOnlyConfigureMask
))
return
(
BadMatch
);
return
(
BadMatch
);
...
@@ -607,8 +605,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
...
@@ -607,8 +605,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
||
(
h
!=
pWin
->
drawable
.
height
);
||
(
h
!=
pWin
->
drawable
.
height
);
if
(
size_change
&&
((
pWin
->
eventMask
|
wOtherEventMasks
(
pWin
))
&
ResizeRedirectMask
))
if
(
size_change
&&
((
pWin
->
eventMask
|
wOtherEventMasks
(
pWin
))
&
ResizeRedirectMask
))
{
{
xEvent
eventT
;
xEvent
eventT
=
{
0
};
memset
(
&
eventT
,
0
,
sizeof
(
xEvent
));
eventT
.
u
.
u
.
type
=
ResizeRequest
;
eventT
.
u
.
u
.
type
=
ResizeRequest
;
eventT
.
u
.
resizeRequest
.
window
=
pWin
->
drawable
.
id
;
eventT
.
u
.
resizeRequest
.
window
=
pWin
->
drawable
.
id
;
eventT
.
u
.
resizeRequest
.
width
=
w
;
eventT
.
u
.
resizeRequest
.
width
=
w
;
...
@@ -723,7 +720,7 @@ ReparentWindow(register WindowPtr pWin, register WindowPtr pParent,
...
@@ -723,7 +720,7 @@ ReparentWindow(register WindowPtr pWin, register WindowPtr pParent,
{
{
WindowPtr
pPrev
,
pPriorParent
;
WindowPtr
pPrev
,
pPriorParent
;
Bool
WasMapped
=
(
Bool
)(
pWin
->
mapped
);
Bool
WasMapped
=
(
Bool
)(
pWin
->
mapped
);
xEvent
event
;
xEvent
event
=
{
0
}
;
int
bw
=
wBorderWidth
(
pWin
);
int
bw
=
wBorderWidth
(
pWin
);
register
ScreenPtr
pScreen
;
register
ScreenPtr
pScreen
;
...
@@ -736,7 +733,6 @@ ReparentWindow(register WindowPtr pWin, register WindowPtr pParent,
...
@@ -736,7 +733,6 @@ ReparentWindow(register WindowPtr pWin, register WindowPtr pParent,
if
(
WasMapped
)
if
(
WasMapped
)
UnmapWindow
(
pWin
,
FALSE
);
UnmapWindow
(
pWin
,
FALSE
);
memset
(
&
event
,
0
,
sizeof
(
xEvent
));
event
.
u
.
u
.
type
=
ReparentNotify
;
event
.
u
.
u
.
type
=
ReparentNotify
;
event
.
u
.
reparent
.
window
=
pWin
->
drawable
.
id
;
event
.
u
.
reparent
.
window
=
pWin
->
drawable
.
id
;
event
.
u
.
reparent
.
parent
=
pParent
->
drawable
.
id
;
event
.
u
.
reparent
.
parent
=
pParent
->
drawable
.
id
;
...
@@ -949,7 +945,6 @@ int
...
@@ -949,7 +945,6 @@ int
UnmapWindow
(
register
WindowPtr
pWin
,
Bool
fromConfigure
)
UnmapWindow
(
register
WindowPtr
pWin
,
Bool
fromConfigure
)
{
{
register
WindowPtr
pParent
;
register
WindowPtr
pParent
;
xEvent
event
;
Bool
wasRealized
=
(
Bool
)
pWin
->
realized
;
Bool
wasRealized
=
(
Bool
)
pWin
->
realized
;
Bool
wasViewable
=
(
Bool
)
pWin
->
viewable
;
Bool
wasViewable
=
(
Bool
)
pWin
->
viewable
;
ScreenPtr
pScreen
=
pWin
->
drawable
.
pScreen
;
ScreenPtr
pScreen
=
pWin
->
drawable
.
pScreen
;
...
@@ -967,7 +962,7 @@ UnmapWindow(register WindowPtr pWin, Bool fromConfigure)
...
@@ -967,7 +962,7 @@ UnmapWindow(register WindowPtr pWin, Bool fromConfigure)
return
(
Success
);
return
(
Success
);
if
(
SubStrSend
(
pWin
,
pParent
))
if
(
SubStrSend
(
pWin
,
pParent
))
{
{
memset
(
&
event
,
0
,
sizeof
(
xEvent
))
;
xEvent
event
=
{
0
}
;
event
.
u
.
u
.
type
=
UnmapNotify
;
event
.
u
.
u
.
type
=
UnmapNotify
;
event
.
u
.
unmapNotify
.
window
=
pWin
->
drawable
.
id
;
event
.
u
.
unmapNotify
.
window
=
pWin
->
drawable
.
id
;
event
.
u
.
unmapNotify
.
fromConfigure
=
fromConfigure
;
event
.
u
.
unmapNotify
.
fromConfigure
=
fromConfigure
;
...
...
nx-X11/programs/Xserver/mi/miexpose.c
View file @
061c3577
...
@@ -395,7 +395,7 @@ miSendGraphicsExpose (client, pRgn, drawable, major, minor)
...
@@ -395,7 +395,7 @@ miSendGraphicsExpose (client, pRgn, drawable, major, minor)
numRects
=
RegionNumRects
(
pRgn
);
numRects
=
RegionNumRects
(
pRgn
);
pBox
=
RegionRects
(
pRgn
);
pBox
=
RegionRects
(
pRgn
);
if
(
!
(
pEvent
=
(
xEvent
*
)
malloc
(
numRects
*
sizeof
(
xEvent
))))
if
(
!
(
pEvent
=
(
xEvent
*
)
calloc
(
numRects
,
sizeof
(
xEvent
))))
return
;
return
;
pe
=
pEvent
;
pe
=
pEvent
;
...
@@ -417,8 +417,7 @@ miSendGraphicsExpose (client, pRgn, drawable, major, minor)
...
@@ -417,8 +417,7 @@ miSendGraphicsExpose (client, pRgn, drawable, major, minor)
}
}
else
else
{
{
xEvent
event
;
xEvent
event
=
{
0
};
memset
(
&
event
,
0
,
sizeof
(
xEvent
));
event
.
u
.
u
.
type
=
NoExpose
;
event
.
u
.
u
.
type
=
NoExpose
;
event
.
u
.
noExposure
.
drawable
=
drawable
;
event
.
u
.
noExposure
.
drawable
=
drawable
;
event
.
u
.
noExposure
.
majorEvent
=
major
;
event
.
u
.
noExposure
.
majorEvent
=
major
;
...
@@ -442,9 +441,8 @@ miSendExposures(pWin, pRgn, dx, dy)
...
@@ -442,9 +441,8 @@ miSendExposures(pWin, pRgn, dx, dy)
pBox
=
RegionRects
(
pRgn
);
pBox
=
RegionRects
(
pRgn
);
numRects
=
RegionNumRects
(
pRgn
);
numRects
=
RegionNumRects
(
pRgn
);
if
(
!
(
pEvent
=
(
xEvent
*
)
malloc
(
numRects
*
sizeof
(
xEvent
))))
if
(
!
(
pEvent
=
(
xEvent
*
)
calloc
(
numRects
,
sizeof
(
xEvent
))))
return
;
return
;
memset
(
pEvent
,
0
,
numRects
*
sizeof
(
xEvent
));
for
(
i
=
numRects
,
pe
=
pEvent
;
--
i
>=
0
;
pe
++
,
pBox
++
)
for
(
i
=
numRects
,
pe
=
pEvent
;
--
i
>=
0
;
pe
++
,
pBox
++
)
{
{
...
@@ -658,7 +656,7 @@ int what;
...
@@ -658,7 +656,7 @@ int what;
BITS32
gcmask
,
index
,
mask
;
BITS32
gcmask
,
index
,
mask
;
RegionRec
prgnWin
;
RegionRec
prgnWin
;
DDXPointRec
oldCorner
;
DDXPointRec
oldCorner
;
BoxRec
box
;
BoxRec
box
=
{
0
}
;
WindowPtr
pBgWin
;
WindowPtr
pBgWin
;
GCPtr
pGC
;
GCPtr
pGC
;
register
int
i
;
register
int
i
;
...
@@ -705,8 +703,7 @@ int what;
...
@@ -705,8 +703,7 @@ int what;
}
}
}
}
prect
=
(
xRectangle
*
)
malloc
(
RegionNumRects
(
prgn
)
*
prect
=
(
xRectangle
*
)
calloc
(
RegionNumRects
(
prgn
),
sizeof
(
xRectangle
));
sizeof
(
xRectangle
));
if
(
!
prect
)
if
(
!
prect
)
return
;
return
;
...
@@ -892,8 +889,7 @@ miClearDrawable(pDraw, pGC)
...
@@ -892,8 +889,7 @@ miClearDrawable(pDraw, pGC)
{
{
XID
fg
=
pGC
->
fgPixel
;
XID
fg
=
pGC
->
fgPixel
;
XID
bg
=
pGC
->
bgPixel
;
XID
bg
=
pGC
->
bgPixel
;
xRectangle
rect
;
xRectangle
rect
=
{
0
};
rect
.
x
=
0
;
rect
.
x
=
0
;
rect
.
y
=
0
;
rect
.
y
=
0
;
rect
.
width
=
pDraw
->
width
;
rect
.
width
=
pDraw
->
width
;
...
...
nx-X11/programs/Xserver/xkb/xkb.c
View file @
061c3577
...
@@ -600,7 +600,7 @@ ProcXkbLatchLockState(ClientPtr client)
...
@@ -600,7 +600,7 @@ ProcXkbLatchLockState(ClientPtr client)
int
int
ProcXkbGetControls
(
ClientPtr
client
)
ProcXkbGetControls
(
ClientPtr
client
)
{
{
xkbGetControlsReply
rep
;
xkbGetControlsReply
rep
=
{
0
}
;
XkbControlsPtr
xkb
;
XkbControlsPtr
xkb
;
DeviceIntPtr
dev
;
DeviceIntPtr
dev
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment