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
b64e1f60
Commit
b64e1f60
authored
May 22, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXevents.c: call upstream version of ProcSendEvent()
parent
a6603778
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
84 deletions
+7
-84
events.c
nx-X11/programs/Xserver/dix/events.c
+4
-2
NXevents.c
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+3
-82
No files found.
nx-X11/programs/Xserver/dix/events.c
View file @
b64e1f60
...
...
@@ -3947,9 +3947,12 @@ CloseDownEvents(void)
spriteTraceSize
=
0
;
}
#ifndef NXAGENT_SERVER
int
#ifdef NXAGENT_SERVER
xorg_ProcSendEvent
(
ClientPtr
client
)
#else
ProcSendEvent
(
ClientPtr
client
)
#endif
{
WindowPtr
pWin
;
WindowPtr
effectiveFocus
=
NullWindow
;
/* only set if dest==InputFocus */
...
...
@@ -4034,7 +4037,6 @@ ProcSendEvent(ClientPtr client)
NullGrab
,
0
);
return
Success
;
}
#endif
/* NXAGENT_SERVER */
int
ProcUngrabKey
(
ClientPtr
client
)
...
...
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
View file @
b64e1f60
...
...
@@ -488,96 +488,17 @@ DefineInitialRootWindow(register WindowPtr win)
int
ProcSendEvent
(
ClientPtr
client
)
{
WindowPtr
pWin
;
WindowPtr
effectiveFocus
=
NullWindow
;
/* only set if dest==InputFocus */
#ifdef NXAGENT_CLIPBOARD
REQUEST
(
xSendEventReq
);
REQUEST_SIZE_MATCH
(
xSendEventReq
);
/* The client's event type must be a core event type or one defined by an
extension. */
#ifdef NXAGENT_CLIPBOARD
if
(
stuff
->
event
.
u
.
u
.
type
==
SelectionNotify
)
{
if
(
nxagentSendNotify
(
&
stuff
->
event
)
==
1
)
return
Success
;
}
#endif
if
(
!
((
stuff
->
event
.
u
.
u
.
type
>
X_Reply
&&
stuff
->
event
.
u
.
u
.
type
<
LASTEvent
)
||
(
stuff
->
event
.
u
.
u
.
type
>=
EXTENSION_EVENT_BASE
&&
stuff
->
event
.
u
.
u
.
type
<
(
unsigned
)
lastEvent
)))
{
client
->
errorValue
=
stuff
->
event
.
u
.
u
.
type
;
return
BadValue
;
}
if
(
stuff
->
event
.
u
.
u
.
type
==
ClientMessage
&&
stuff
->
event
.
u
.
u
.
detail
!=
8
&&
stuff
->
event
.
u
.
u
.
detail
!=
16
&&
stuff
->
event
.
u
.
u
.
detail
!=
32
)
{
client
->
errorValue
=
stuff
->
event
.
u
.
u
.
detail
;
return
BadValue
;
}
if
(
stuff
->
eventMask
&
~
AllEventMasks
)
{
client
->
errorValue
=
stuff
->
eventMask
;
return
BadValue
;
}
if
(
stuff
->
destination
==
PointerWindow
)
pWin
=
sprite
.
win
;
else
if
(
stuff
->
destination
==
InputFocus
)
{
WindowPtr
inputFocus
=
inputInfo
.
keyboard
->
focus
->
win
;
if
(
inputFocus
==
NoneWin
)
return
Success
;
/* If the input focus is PointerRootWin, send the event to where
the pointer is if possible, then perhaps propagate up to root. */
if
(
inputFocus
==
PointerRootWin
)
inputFocus
=
ROOT
;
if
(
IsParent
(
inputFocus
,
sprite
.
win
))
{
effectiveFocus
=
inputFocus
;
pWin
=
sprite
.
win
;
}
else
effectiveFocus
=
pWin
=
inputFocus
;
}
else
pWin
=
SecurityLookupWindow
(
stuff
->
destination
,
client
,
DixReadAccess
);
if
(
!
pWin
)
return
BadWindow
;
if
((
stuff
->
propagate
!=
xFalse
)
&&
(
stuff
->
propagate
!=
xTrue
))
{
client
->
errorValue
=
stuff
->
propagate
;
return
BadValue
;
}
stuff
->
event
.
u
.
u
.
type
|=
0x80
;
if
(
stuff
->
propagate
)
{
for
(;
pWin
;
pWin
=
pWin
->
parent
)
{
if
(
DeliverEventsToWindow
(
pWin
,
&
stuff
->
event
,
1
,
stuff
->
eventMask
,
NullGrab
,
0
))
return
Success
;
if
(
pWin
==
effectiveFocus
)
return
Success
;
stuff
->
eventMask
&=
~
wDontPropagateMask
(
pWin
);
if
(
!
stuff
->
eventMask
)
break
;
}
}
else
(
void
)
DeliverEventsToWindow
(
pWin
,
&
stuff
->
event
,
1
,
stuff
->
eventMask
,
NullGrab
,
0
);
return
Success
;
return
xorg_ProcSendEvent
(
client
);
}
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