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
789d3a37
Unverified
Commit
789d3a37
authored
May 21, 2019
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/fix_xkb_crash' into 3.6.x
Attributes GH PR #809:
https://github.com/ArcticaProject/nx-libs/pull/809
parents
6981e9bb
20353e96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
XKBBind.c
nx-X11/lib/src/xkb/XKBBind.c
+14
-0
xkbUtils.c
nx-X11/programs/Xserver/xkb/xkbUtils.c
+4
-0
No files found.
nx-X11/lib/src/xkb/XKBBind.c
View file @
789d3a37
...
...
@@ -108,7 +108,21 @@ XKeycodeToKeysym(Display *dpy,
_XkbCheckPendingRefresh
(
dpy
,
dpy
->
xkb_info
);
#ifdef NX_TRANS_SOCKET
/*
check again, we have seen cases where the connection broke
during CheckPendingEvents(), followed by a crash when accessing
dpy. See https://github.com/ArcticaProject/nx-libs/issues/801
*/
if
(
_XkbUnavailable
(
dpy
))
return
_XKeycodeToKeysym
(
dpy
,
kc
,
col
);
#endif
xkb
=
dpy
->
xkb_info
->
desc
;
#ifdef NX_TRANS_SOCKET
if
(
xkb
==
NULL
)
return
_XKeycodeToKeysym
(
dpy
,
kc
,
col
);
#endif
if
((
kc
<
xkb
->
min_key_code
)
||
(
kc
>
xkb
->
max_key_code
))
return
NoSymbol
;
...
...
nx-X11/programs/Xserver/xkb/xkbUtils.c
View file @
789d3a37
...
...
@@ -685,6 +685,10 @@ unsigned act;
else
group
=
newGroup
;
}
else
{
#ifdef NXAGENT_SERVER
/* we have seen division by zero here */
if
(
ctrls
->
num_groups
!=
0
)
#endif
group
%=
ctrls
->
num_groups
;
}
}
...
...
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