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
You need to sign in or sign up before continuing.
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
Show 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)
...
@@ -410,13 +410,13 @@ static enum nxagentSpecialKeystroke find_keystroke(XKeyEvent *X)
return
ret
;
return
ret
;
}
}
int
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
X
,
enum
HandleEventResult
*
result
)
Bool
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
X
,
enum
HandleEventResult
*
result
)
{
{
enum
nxagentSpecialKeystroke
stroke
=
find_keystroke
(
X
);
enum
nxagentSpecialKeystroke
stroke
=
find_keystroke
(
X
);
*
result
=
doNothing
;
*
result
=
doNothing
;
if
(
stroke
==
KEYSTROKE_NOTHING
)
if
(
stroke
==
KEYSTROKE_NOTHING
)
return
0
;
return
False
;
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"nxagentCheckSpecialKeystroke: got code %x - state %x - stroke %d
\n
"
,
fprintf
(
stderr
,
"nxagentCheckSpecialKeystroke: got code %x - state %x - stroke %d
\n
"
,
...
@@ -436,7 +436,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
...
@@ -436,7 +436,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
{
{
*
result
=
doStartKbd
;
*
result
=
doStartKbd
;
return
1
;
return
True
;
}
}
switch
(
stroke
)
{
switch
(
stroke
)
{
...
@@ -492,7 +492,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
...
@@ -492,7 +492,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
break
;
break
;
case
KEYSTROKE_IGNORE
:
case
KEYSTROKE_IGNORE
:
/* this is used e.g. to ignore C-A-Backspace aka XK_Terminate_Server */
/* this is used e.g. to ignore C-A-Backspace aka XK_Terminate_Server */
return
1
;
return
True
;
break
;
break
;
case
KEYSTROKE_FORCE_SYNCHRONIZATION
:
case
KEYSTROKE_FORCE_SYNCHRONIZATION
:
nxagentForceSynchronization
=
1
;
nxagentForceSynchronization
=
1
;
...
@@ -517,7 +517,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
...
@@ -517,7 +517,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
nxagentLastInputDevicesDumpTime
=
0
;
nxagentLastInputDevicesDumpTime
=
0
;
}
}
}
}
return
1
;
return
True
;
#endif
#endif
break
;
break
;
case
KEYSTROKE_DEACTIVATE_INPUT_DEVICES_GRAB
:
case
KEYSTROKE_DEACTIVATE_INPUT_DEVICES_GRAB
:
...
@@ -525,7 +525,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
...
@@ -525,7 +525,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
if
(
X
->
type
==
KeyPress
)
{
if
(
X
->
type
==
KeyPress
)
{
nxagentDeactivateInputDevicesGrab
();
nxagentDeactivateInputDevicesGrab
();
}
}
return
1
;
return
True
;
#endif
#endif
break
;
break
;
case
KEYSTROKE_FULLSCREEN
:
case
KEYSTROKE_FULLSCREEN
:
...
@@ -562,5 +562,5 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
...
@@ -562,5 +562,5 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
case
KEYSTROKE_MAX
:
case
KEYSTROKE_MAX
:
break
;
break
;
}
}
return
(
*
result
==
doNothing
)
?
0
:
1
;
return
(
*
result
==
doNothing
);
}
}
nx-X11/programs/Xserver/hw/nxagent/Keystroke.h
View file @
c80605a1
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "Events.h"
#include "Events.h"
extern
int
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
,
enum
HandleEventResult
*
);
extern
Bool
nxagentCheckSpecialKeystroke
(
XKeyEvent
*
,
enum
HandleEventResult
*
);
unsigned
int
nxagentAltMetaMask
;
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