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
7804c9c6
Commit
7804c9c6
authored
Mar 10, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keystroke.c: simplify nxagentCheckSpecialKeystroke
parent
dfa8bb27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
+3
-19
Keystroke.c
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+3
-19
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
View file @
7804c9c6
...
...
@@ -414,31 +414,15 @@ static enum nxagentSpecialKeystroke find_keystroke(XKeyEvent *X)
int
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
X
,
enum
HandleEventResult
*
result
)
{
enum
nxagentSpecialKeystroke
stroke
=
find_keystroke
(
X
);
*
result
=
doNothing
;
/*
* I don't know how much hard work is doing this operation.
* Do we need a cache ?
*/
int
keysyms_per_keycode_return
;
XlibKeySym
*
sym
=
XGetKeyboardMapping
(
nxagentDisplay
,
X
->
keycode
,
1
,
&
keysyms_per_keycode_return
);
if
(
sym
[
0
]
==
XK_VoidSymbol
||
sym
[
0
]
==
NoSymbol
)
{
free
(
sym
);
if
(
stroke
==
KEYSTROKE_NOTHING
)
return
0
;
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentCheckSpecialKeystroke: got code %x - state %x - s
ym %lx
\n
"
,
X
->
keycode
,
X
->
state
,
sym
[
0
]
);
fprintf
(
stderr
,
"nxagentCheckSpecialKeystroke: got code %x - state %x - s
troke %d
\n
"
,
X
->
keycode
,
X
->
state
,
stroke
);
#endif
free
(
sym
);
/*
* Check special keys.
...
...
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