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
c80605a1
Commit
c80605a1
authored
Mar 10, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keystroke.c: Boolify nxagentCheckSpecialKeystroke
parent
ac3794c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Keystroke.c
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+7
-7
Keystroke.h
nx-X11/programs/Xserver/hw/nxagent/Keystroke.h
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
View file @
c80605a1
...
...
@@ -410,13 +410,13 @@ static enum nxagentSpecialKeystroke find_keystroke(XKeyEvent *X)
return
ret
;
}
int
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
X
,
enum
HandleEventResult
*
result
)
Bool
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
X
,
enum
HandleEventResult
*
result
)
{
enum
nxagentSpecialKeystroke
stroke
=
find_keystroke
(
X
);
*
result
=
doNothing
;
if
(
stroke
==
KEYSTROKE_NOTHING
)
return
0
;
return
False
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentCheckSpecialKeystroke: got code %x - state %x - stroke %d
\n
"
,
...
...
@@ -436,7 +436,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
{
*
result
=
doStartKbd
;
return
1
;
return
True
;
}
switch
(
stroke
)
{
...
...
@@ -492,7 +492,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
break
;
case
KEYSTROKE_IGNORE
:
/* this is used e.g. to ignore C-A-Backspace aka XK_Terminate_Server */
return
1
;
return
True
;
break
;
case
KEYSTROKE_FORCE_SYNCHRONIZATION
:
nxagentForceSynchronization
=
1
;
...
...
@@ -517,7 +517,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
nxagentLastInputDevicesDumpTime
=
0
;
}
}
return
1
;
return
True
;
#endif
break
;
case
KEYSTROKE_DEACTIVATE_INPUT_DEVICES_GRAB
:
...
...
@@ -525,7 +525,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
if
(
X
->
type
==
KeyPress
)
{
nxagentDeactivateInputDevicesGrab
();
}
return
1
;
return
True
;
#endif
break
;
case
KEYSTROKE_FULLSCREEN
:
...
...
@@ -562,5 +562,5 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
case
KEYSTROKE_MAX
:
break
;
}
return
(
*
result
==
doNothing
)
?
0
:
1
;
return
(
*
result
==
doNothing
);
}
nx-X11/programs/Xserver/hw/nxagent/Keystroke.h
View file @
c80605a1
...
...
@@ -28,7 +28,7 @@
#include "Events.h"
extern
int
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
,
enum
HandleEventResult
*
);
extern
Bool
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
,
enum
HandleEventResult
*
);
unsigned
int
nxagentAltMetaMask
;
...
...
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