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
c260ae42
Commit
c260ae42
authored
Jun 28, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Events.c: refactor nxagentHandleKeypress
parent
360cb5dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+4
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
c260ae42
...
...
@@ -2225,8 +2225,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was
int
nxagentHandleKeyPress
(
XEvent
*
X
,
enum
HandleEventResult
*
result
)
{
xEvent
x
;
if
(
nxagentXkbState
.
Initialized
==
0
)
{
if
(
X
->
xkey
.
keycode
==
nxagentCapsLockKeycode
)
...
...
@@ -2258,15 +2256,15 @@ int nxagentHandleKeyPress(XEvent *X, enum HandleEventResult *result)
nxagentXkbState
.
Num
=
(
~
nxagentXkbState
.
Num
&
1
);
}
nxagentLastServerTime
=
X
->
xkey
.
time
;
nxagentLastEventTime
=
nxagentLastKeyPressTime
=
GetTimeInMillis
();
memset
(
&
x
,
0
,
sizeof
(
xEvent
))
;
xEvent
x
=
{
0
}
;
x
.
u
.
u
.
type
=
KeyPress
;
x
.
u
.
u
.
detail
=
nxagentConvertKeycode
(
X
->
xkey
.
keycode
);
x
.
u
.
keyButtonPointer
.
time
=
nxagentLastKeyPressTime
;
nxagentLastServerTime
=
X
->
xkey
.
time
;
mieqEnqueue
(
&
x
);
CriticalOutputPending
=
1
;
...
...
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