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
f887d428
Commit
f887d428
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 ProcAllocEvents()
Our version only adds some commented code, so it is not really necessary. But it is cleaner to handle it that way.
parent
582618af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
53 deletions
+24
-53
events.c
nx-X11/programs/Xserver/dix/events.c
+4
-0
NXevents.c
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+20
-53
No files found.
nx-X11/programs/Xserver/dix/events.c
View file @
f887d428
...
...
@@ -1436,7 +1436,11 @@ AllowSome(ClientPtr client, TimeStamp time, DeviceIntPtr thisDev, int newState)
}
int
#ifdef NXAGENT_SERVER
xorg_ProcAllowEvents
(
register
ClientPtr
client
)
#else
ProcAllowEvents
(
register
ClientPtr
client
)
#endif
{
TimeStamp
time
;
DeviceIntPtr
mouse
=
inputInfo
.
pointer
;
...
...
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
View file @
f887d428
...
...
@@ -230,59 +230,26 @@ DeactivatePointerGrab(register DeviceIntPtr mouse)
#endif
}
// int
// ProcAllowEvents(register ClientPtr client)
// {
// TimeStamp time;
// DeviceIntPtr mouse = inputInfo.pointer;
// DeviceIntPtr keybd = inputInfo.keyboard;
// REQUEST(xAllowEventsReq);
//
// REQUEST_SIZE_MATCH(xAllowEventsReq);
// time = ClientTimeToServerTime(stuff->time);
// switch (stuff->mode)
// {
// case ReplayPointer:
// AllowSome(client, time, mouse, NOT_GRABBED);
// break;
// case SyncPointer:
// AllowSome(client, time, mouse, FREEZE_NEXT_EVENT);
// break;
// case AsyncPointer:
// AllowSome(client, time, mouse, THAWED);
// break;
// case ReplayKeyboard:
// AllowSome(client, time, keybd, NOT_GRABBED);
// break;
// case SyncKeyboard:
// AllowSome(client, time, keybd, FREEZE_NEXT_EVENT);
// break;
// case AsyncKeyboard:
// AllowSome(client, time, keybd, THAWED);
// break;
// case SyncBoth:
// AllowSome(client, time, keybd, FREEZE_BOTH_NEXT_EVENT);
// break;
// case AsyncBoth:
// AllowSome(client, time, keybd, THAWED_BOTH);
// break;
// default:
// client->errorValue = stuff->mode;
// return BadValue;
// }
//
// /*
// * This is not necessary if we export grab to X as asynchronous.
// *
// * if (nxagentOption(Rootless) && stuff -> mode != ReplayKeyboard &&
// * stuff -> mode != SyncKeyboard && stuff -> mode != AsyncKeyboard)
// * {
// * XAllowEvents(nxagentDisplay, stuff -> mode, CurrentTime);
// * }
// */
//
// return Success;
// }
int
ProcAllowEvents
(
register
ClientPtr
client
)
{
int
rc
=
xorg_ProcAllowEvents
(
client
);
if
(
rc
!=
Success
)
return
rc
;
/*
* This is not necessary if we export grab to X as asynchronous.
*
* if (nxagentOption(Rootless) && stuff -> mode != ReplayKeyboard &&
* stuff -> mode != SyncKeyboard && stuff -> mode != AsyncKeyboard)
* {
* XAllowEvents(nxagentDisplay, stuff -> mode, CurrentTime);
* }
*/
return
Success
;
}
static
WindowPtr
XYToWindow
(
int
x
,
int
y
)
...
...
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