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
753535e3
Unverified
Commit
753535e3
authored
Nov 01, 2019
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/simplify_nxevents' into 3.6.x
Attributes GH PR #858:
https://github.com/ArcticaProject/nx-libs/pull/858
parents
bdcb5a18
283e4523
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
10 deletions
+34
-10
events.c
nx-X11/programs/Xserver/dix/events.c
+34
-10
NXevents.c
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+0
-0
No files found.
nx-X11/programs/Xserver/dix/events.c
View file @
753535e3
...
...
@@ -1216,10 +1216,14 @@ CheckGrabForSyncs(register DeviceIntPtr thisDev, Bool thisMode, Bool otherMode)
ComputeFreezes
();
}
#ifndef NXAGENT_SERVER
void
ActivatePointerGrab
(
register
DeviceIntPtr
mouse
,
register
GrabPtr
grab
,
#ifdef NXAGENT_SERVER
xorg_ActivatePointerGrab
(
register
DeviceIntPtr
mouse
,
register
GrabPtr
grab
,
TimeStamp
time
,
Bool
autoGrab
)
#else
ActivatePointerGrab
(
register
DeviceIntPtr
mouse
,
register
GrabPtr
grab
,
TimeStamp
time
,
Bool
autoGrab
)
#endif
{
WindowPtr
oldWin
=
(
mouse
->
grab
)
?
mouse
->
grab
->
window
:
sprite
.
win
;
...
...
@@ -1246,7 +1250,11 @@ ActivatePointerGrab(register DeviceIntPtr mouse, register GrabPtr grab,
}
void
#ifdef NXAGENT_SERVER
xorg_DeactivatePointerGrab
(
register
DeviceIntPtr
mouse
)
#else
DeactivatePointerGrab
(
register
DeviceIntPtr
mouse
)
#endif
{
register
GrabPtr
grab
=
mouse
->
grab
;
register
DeviceIntPtr
dev
;
...
...
@@ -1268,7 +1276,6 @@ DeactivatePointerGrab(register DeviceIntPtr mouse)
FreeCursor
(
grab
->
cursor
,
(
Cursor
)
0
);
ComputeFreezes
();
}
#endif
/* NXAGENT_SERVER */
void
ActivateKeyboardGrab
(
register
DeviceIntPtr
keybd
,
GrabPtr
grab
,
TimeStamp
time
,
Bool
passive
)
...
...
@@ -1429,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
;
...
...
@@ -1903,7 +1914,17 @@ PointInBorderSize(WindowPtr pWin, int x, int y)
return
FALSE
;
}
#ifndef NXAGENT_SERVER
/* define XYWINDOWCALLBACK if your DDX provides this callback */
static
WindowPtr
GetXYStartWindow
(
WindowPtr
pWin
);
#ifndef XYWINDOWCALLBACK
static
WindowPtr
GetXYStartWindow
(
WindowPtr
pWin
)
{
return
pWin
;
}
#endif
static
WindowPtr
XYToWindow
(
int
x
,
int
y
)
{
...
...
@@ -1911,7 +1932,7 @@ XYToWindow(int x, int y)
BoxRec
box
;
spriteTraceGood
=
1
;
/* root window still there */
pWin
=
ROOT
->
firstChild
;
pWin
=
GetXYStartWindow
(
ROOT
->
firstChild
)
;
while
(
pWin
)
{
if
((
pWin
->
mapped
)
&&
...
...
@@ -1949,7 +1970,6 @@ XYToWindow(int x, int y)
}
return
spriteTrace
[
spriteTraceGood
-
1
];
}
#endif
/* NXAGENT_SERVER */
#ifndef NXAGENT_SERVER
static
Bool
...
...
@@ -2063,9 +2083,12 @@ void ReinitializeRootWindow(WindowPtr win, int xoff, int yoff)
}
#endif
#ifndef NXAGENT_SERVER
void
#ifdef NXAGENT_SERVER
xorg_DefineInitialRootWindow
(
register
WindowPtr
win
)
#else
DefineInitialRootWindow
(
register
WindowPtr
win
)
#endif
{
register
ScreenPtr
pScreen
=
win
->
drawable
.
pScreen
;
...
...
@@ -2105,7 +2128,6 @@ DefineInitialRootWindow(register WindowPtr win)
}
#endif
}
#endif
/* NXAGENT_SERVER */
/*
* This does not take any shortcuts, and even ignores its argument, since
...
...
@@ -3940,9 +3962,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 */
...
...
@@ -4027,7 +4052,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 @
753535e3
This diff is collapsed.
Click to expand it.
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