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
d2ba4ddb
Commit
d2ba4ddb
authored
Dec 31, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: make nxagentXkbState.Initialized a Boolean
parent
f10e9d9a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+3
-3
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+1
-1
Keyboard.h
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
+1
-2
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
d2ba4ddb
...
...
@@ -1143,7 +1143,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
nxagentKeyDown
=
0
;
}
if
(
nxagentXkbState
.
Initialized
==
0
)
if
(
!
nxagentXkbState
.
Initialized
)
{
if
(
X
.
xkey
.
keycode
==
nxagentCapsLockKeycode
)
{
...
...
@@ -2263,7 +2263,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
int
nxagentHandleKeyPress
(
XEvent
*
X
,
enum
HandleEventResult
*
result
)
{
if
(
nxagentXkbState
.
Initialized
==
0
)
if
(
!
nxagentXkbState
.
Initialized
)
{
if
(
X
->
xkey
.
keycode
==
nxagentCapsLockKeycode
)
{
...
...
@@ -2741,7 +2741,7 @@ int nxagentHandleXkbKeyboardStateEvent(XEvent *X)
nxagentXkbState
.
Locked
);
#endif
nxagentXkbState
.
Initialized
=
1
;
nxagentXkbState
.
Initialized
=
True
;
if
(
nxagentXkbState
.
Caps
==
0
&&
(
nxagentXkbState
.
Locked
&
CAPSFLAG_IN_EVENT
))
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
d2ba4ddb
...
...
@@ -161,7 +161,7 @@ XkbAgentInfoRec nxagentXkbInfo = { -1, -1, -1, -1, -1 };
* Keyboard status, updated through XKB events.
*/
XkbAgentStateRec
nxagentXkbState
=
{
0
,
0
,
0
,
0
,
0
};
XkbAgentStateRec
nxagentXkbState
=
{
0
,
0
,
0
,
0
,
False
};
/*
* Info for disabling/enabling Xkb extension.
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
View file @
d2ba4ddb
...
...
@@ -68,8 +68,7 @@ typedef struct _XkbAgentState
int
Caps
;
int
Num
;
int
Focus
;
int
Initialized
;
Bool
Initialized
;
}
XkbAgentStateRec
;
extern
XkbAgentStateRec
nxagentXkbState
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
d2ba4ddb
...
...
@@ -616,7 +616,7 @@ Bool nxagentReconnectSession(void)
}
}
nxagentXkbState
.
Initialized
=
0
;
nxagentXkbState
.
Initialized
=
False
;
SAFE_free
(
nxagentOldKeyboard
);
...
...
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