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
1d301c51
Unverified
Commit
1d301c51
authored
Dec 14, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sunweaver-pr/fix-compiler-warnings' into 3.6.x
Attributes GH PR #333:
https://github.com/ArcticaProject/nx-libs/pull/333
parents
91ca51bf
8bb1579f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
28 deletions
+40
-28
Xrm.c
nx-X11/lib/src/Xrm.c
+1
-1
glxcmds.c
nx-X11/programs/Xserver/GL/glx/glxcmds.c
+1
-1
glxfb.c
nx-X11/programs/Xserver/GL/glx/glxfb.c
+1
-1
unpack.h
nx-X11/programs/Xserver/GL/glx/unpack.h
+1
-1
chgfctl.c
nx-X11/programs/Xserver/Xi/chgfctl.c
+3
-3
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+12
-12
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+1
-1
NXxvdisp.c
nx-X11/programs/Xserver/hw/nxagent/NXxvdisp.c
+20
-8
No files found.
nx-X11/lib/src/Xrm.c
View file @
1d301c51
...
...
@@ -897,7 +897,7 @@ static void PutEntry(
/* bump to loose table, if any */
table
=
*
(
prev
=
&
table
->
next
);
if
(
!
table
||
table
->
name
!=
q
||
!
quarks
[
2
]
!=
table
->
leaf
)
(
!
quarks
[
2
])
!=
table
->
leaf
)
break
;
/* not found */
}
}
...
...
nx-X11/programs/Xserver/GL/glx/glxcmds.c
View file @
1d301c51
...
...
@@ -1762,7 +1762,7 @@ static int __glXBindSwapBarrierSGIX(__GLXclientState *cl, GLbyte *pc)
if
(
ret
==
Success
)
{
if
(
barrier
)
/* add source for cleanup when drawable is gone */
AddResource
(
drawable
,
__glXSwapBarrierRes
,
(
void
*
)
screen
);
AddResource
(
drawable
,
__glXSwapBarrierRes
,
(
void
*
)
(
intptr_t
)
screen
);
else
/* delete source */
FreeResourceByType
(
drawable
,
__glXSwapBarrierRes
,
FALSE
);
...
...
nx-X11/programs/Xserver/GL/glx/glxfb.c
View file @
1d301c51
...
...
@@ -113,7 +113,7 @@ __glXFBMemSwapBuffers(__GLXdrawablePrivate *glxPriv)
depth
,
0
,
0
,
width
,
height
,
pad
,
ZPixmap
,
buf
);
(
char
*
)
buf
);
return
GL_TRUE
;
}
...
...
nx-X11/programs/Xserver/GL/glx/unpack.h
View file @
1d301c51
...
...
@@ -52,7 +52,7 @@
** Fetch a double from potentially unaligned memory.
*/
#ifdef __GLX_ALIGN64
#define __GLX_MEM_COPY(dst,src,n)
if (src && dst) memcpy
(dst,src,n)
#define __GLX_MEM_COPY(dst,src,n)
memmove
(dst,src,n)
#define __GLX_GET_DOUBLE(dst,src) __GLX_MEM_COPY(&dst,src,8)
#else
#define __GLX_GET_DOUBLE(dst,src) (dst) = *((GLdouble*)(src))
...
...
nx-X11/programs/Xserver/Xi/chgfctl.c
View file @
1d301c51
...
...
@@ -358,9 +358,9 @@ ChangeKbdFeedback (client, dev, mask, k, f)
kctrl
.
autoRepeat
=
defaultKeyboardControl
.
autoRepeat
;
else
kctrl
.
autoRepeats
[
inx
]
&=
~
kmask
;
kctrl
.
autoRepeats
[
inx
]
=
(
kctrl
.
autoRepeats
[
inx
]
&
~
kmask
)
|
(
defaultKeyboardControl
.
autoRepeats
[
inx
]
&
kmask
);
kctrl
.
autoRepeats
[
inx
]
=
(
kctrl
.
autoRepeats
[
inx
]
&
~
kmask
)
|
(
defaultKeyboardControl
.
autoRepeats
[
inx
]
&
kmask
);
}
else
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
1d301c51
...
...
@@ -4664,12 +4664,12 @@ void nxagentDumpInputDevicesState(void)
}
}
fprintf
(
stderr
,
"
\n
Keyboard device state:
\n\t
device [%p]
\n\t
last grab time [%
l
u]"
fprintf
(
stderr
,
"
\n
Keyboard device state:
\n\t
device [%p]
\n\t
last grab time [%u]"
"
\n\t
frozen [%s]
\n\t
state [%s]
\n\t
other [%p]
\n\t
event count [%d]"
"
\n\t
from passive grab [%s]
\n\t
activating key [%d]"
,
dev
,
"
\n\t
from passive grab [%s]
\n\t
activating key [%d]"
,
(
void
*
)
dev
,
dev
->
grabTime
.
milliseconds
,
dev
->
sync
.
frozen
?
"Yes"
:
"No"
,
nxagentGrabStateToString
(
dev
->
sync
.
state
),
dev
->
sync
.
other
,
dev
->
sync
.
evcount
,
(
void
*
)
dev
->
sync
.
other
,
dev
->
sync
.
evcount
,
dev
->
fromPassiveGrab
?
"Yes"
:
"No"
,
dev
->
activatingKey
);
...
...
@@ -4679,7 +4679,7 @@ void nxagentDumpInputDevicesState(void)
{
fprintf
(
stderr
,
"
\n
Keyboard grab state:
\n\t
window pointer [%p]"
"
\n\t
owner events flag [%s]
\n\t
grab mode [%s]"
,
grab
->
window
,
grab
->
ownerEvents
?
"True"
:
"False"
,
(
void
*
)
grab
->
window
,
grab
->
ownerEvents
?
"True"
:
"False"
,
grab
->
keyboardMode
?
"asynchronous"
:
"synchronous"
);
/*
...
...
@@ -4693,8 +4693,8 @@ void nxagentDumpInputDevicesState(void)
{
fprintf
(
stderr
,
"
\n
Passive grab state:
\n\t
device [%p]
\n\t
owner events flag [%s]"
"
\n\t
pointer grab mode [%s]
\n\t
keyboard grab mode [%s]
\n\t
event type [%d]"
"
\n\t
modifiers [%x]
\n\t
button/key [%u]
\n\t
event mask [%
l
x]"
,
grab
->
device
,
grab
->
ownerEvents
?
"True"
:
"False"
,
"
\n\t
modifiers [%x]
\n\t
button/key [%u]
\n\t
event mask [%x]"
,
(
void
*
)
grab
->
device
,
grab
->
ownerEvents
?
"True"
:
"False"
,
grab
->
pointerMode
?
"asynchronous"
:
"synchronous"
,
grab
->
keyboardMode
?
"asynchronous"
:
"synchronous"
,
grab
->
type
,
grab
->
modifiersDetail
.
exact
,
...
...
@@ -4724,12 +4724,12 @@ void nxagentDumpInputDevicesState(void)
}
}
fprintf
(
stderr
,
"
\n
Pointer device state:
\n\t
device [%p]
\n\t
last grab time [%
l
u]"
fprintf
(
stderr
,
"
\n
Pointer device state:
\n\t
device [%p]
\n\t
last grab time [%u]"
"
\n\t
frozen [%s]
\n\t
state [%s]
\n\t
other [%p]
\n\t
event count [%d]"
"
\n\t
from passive grab [%s]
\n\t
activating button [%d]"
,
dev
,
"
\n\t
from passive grab [%s]
\n\t
activating button [%d]"
,
(
void
*
)
dev
,
dev
->
grabTime
.
milliseconds
,
dev
->
sync
.
frozen
?
"Yes"
:
"No"
,
nxagentGrabStateToString
(
dev
->
sync
.
state
),
dev
->
sync
.
other
,
dev
->
sync
.
evcount
,
(
void
*
)
dev
->
sync
.
other
,
dev
->
sync
.
evcount
,
dev
->
fromPassiveGrab
?
"Yes"
:
"No"
,
dev
->
activatingKey
);
...
...
@@ -4739,7 +4739,7 @@ void nxagentDumpInputDevicesState(void)
{
fprintf
(
stderr
,
"
\n
Pointer grab state:
\n\t
window pointer [%p]"
"
\n\t
owner events flag [%s]
\n\t
grab mode [%s]"
,
grab
->
window
,
grab
->
ownerEvents
?
"True"
:
"False"
,
(
void
*
)
grab
->
window
,
grab
->
ownerEvents
?
"True"
:
"False"
,
grab
->
pointerMode
?
"asynchronous"
:
"synchronous"
);
if
(
grab
->
window
!=
pWin
)
...
...
@@ -4754,8 +4754,8 @@ void nxagentDumpInputDevicesState(void)
{
fprintf
(
stderr
,
"
\n
Passive grab state:
\n\t
device [%p]
\n\t
owner events flag [%s]"
"
\n\t
pointer grab mode [%s]
\n\t
keyboard grab mode [%s]
\n\t
event type [%d]"
"
\n\t
modifiers [%x]
\n\t
button/key [%u]
\n\t
event mask [%
l
x]"
,
grab
->
device
,
grab
->
ownerEvents
?
"True"
:
"False"
,
"
\n\t
modifiers [%x]
\n\t
button/key [%u]
\n\t
event mask [%x]"
,
(
void
*
)
grab
->
device
,
grab
->
ownerEvents
?
"True"
:
"False"
,
grab
->
pointerMode
?
"asynchronous"
:
"synchronous"
,
grab
->
keyboardMode
?
"asynchronous"
:
"synchronous"
,
grab
->
type
,
grab
->
modifiersDetail
.
exact
,
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
1d301c51
...
...
@@ -309,7 +309,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
if
(
!
(
dispatchException
&
DE_TERMINATE
))
dispatchException
=
0
;
while
(
!
dispatchException
)
while
(
!
dispatchException
)
{
if
(
*
icheck
[
0
]
!=
*
icheck
[
1
])
{
...
...
nx-X11/programs/Xserver/hw/nxagent/NXxvdisp.c
View file @
1d301c51
...
...
@@ -95,16 +95,20 @@ ProcXvDispatch(ClientPtr client)
result
=
(
XineramaXvPutVideo
(
client
));
else
#endif
result
=
(
ProcXvPutVideo
(
client
));
break
;
{
result
=
(
ProcXvPutVideo
(
client
));
}
break
;
case
xv_PutStill
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
result
=
(
XineramaXvPutStill
(
client
));
else
#endif
result
=
(
ProcXvPutStill
(
client
));
break
;
{
result
=
(
ProcXvPutStill
(
client
));
}
break
;
case
xv_GetVideo
:
result
=
(
ProcXvGetVideo
(
client
));
break
;
case
xv_GetStill
:
result
=
(
ProcXvGetStill
(
client
));
break
;
case
xv_GrabPort
:
result
=
(
ProcXvGrabPort
(
client
));
break
;
...
...
@@ -117,16 +121,20 @@ ProcXvDispatch(ClientPtr client)
result
=
(
XineramaXvStopVideo
(
client
));
else
#endif
{
result
=
(
ProcXvStopVideo
(
client
));
break
;
}
break
;
case
xv_SetPortAttribute
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
result
=
(
XineramaXvSetPortAttribute
(
client
));
else
#endif
{
result
=
(
ProcXvSetPortAttribute
(
client
));
break
;
}
break
;
case
xv_GetPortAttribute
:
result
=
(
ProcXvGetPortAttribute
(
client
));
break
;
case
xv_QueryBestSize
:
result
=
(
ProcXvQueryBestSize
(
client
));
break
;
case
xv_QueryPortAttributes
:
result
=
(
ProcXvQueryPortAttributes
(
client
));
break
;
...
...
@@ -136,8 +144,10 @@ ProcXvDispatch(ClientPtr client)
result
=
(
XineramaXvPutImage
(
client
));
else
#endif
{
result
=
(
ProcXvPutImage
(
client
));
break
;
}
break
;
#ifdef MITSHM
case
xv_ShmPutImage
:
#ifdef PANORAMIX
...
...
@@ -145,8 +155,10 @@ ProcXvDispatch(ClientPtr client)
result
=
(
XineramaXvShmPutImage
(
client
));
else
#endif
{
result
=
(
ProcXvShmPutImage
(
client
));
break
;
}
break
;
#endif
case
xv_QueryImageAttributes
:
result
=
(
ProcXvQueryImageAttributes
(
client
));
break
;
case
xv_ListImageFormats
:
result
=
(
ProcXvListImageFormats
(
client
));
break
;
...
...
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