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
d8bc4913
Commit
d8bc4913
authored
Mar 10, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keystroke.c: use Bool type where appropriate
parent
320cece2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Keystroke.c
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+4
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
View file @
d8bc4913
...
...
@@ -139,7 +139,7 @@ struct nxagentSpecialKeystrokeMap default_map[] = {
};
struct
nxagentSpecialKeystrokeMap
*
map
=
default_map
;
static
int
modifier_matches
(
unsigned
int
mask
,
int
compare_alt_meta
,
unsigned
int
state
)
static
Bool
modifier_matches
(
unsigned
int
mask
,
int
compare_alt_meta
,
unsigned
int
state
)
{
/* nxagentAltMetaMask needs special handling
* it seems to me its an and-ed mask of all possible meta and alt keys
...
...
@@ -147,11 +147,11 @@ static int modifier_matches(unsigned int mask, int compare_alt_meta, unsigned in
*
* otherwise this function would be just a simple bitop
*/
int
ret
=
1
;
Bool
ret
=
True
;
if
(
compare_alt_meta
)
{
if
(
!
(
state
&
nxagentAltMetaMask
))
{
ret
=
0
;
ret
=
False
;
}
mask
&=
~
nxagentAltMetaMask
;
...
...
@@ -159,7 +159,7 @@ static int modifier_matches(unsigned int mask, int compare_alt_meta, unsigned in
/* all modifiers except meta/alt have to match exactly, extra bits are evil */
if
((
mask
&
state
)
!=
mask
)
{
ret
=
0
;
ret
=
False
;
}
return
ret
;
...
...
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