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
b1d3f2ca
Unverified
Commit
b1d3f2ca
authored
Nov 08, 2016
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/keyboard_fixes' into arctica-3.6.x
Attributes GH PR #243:
https://github.com/ArcticaProject/nx-libs/pull/243
parents
7b79e8d8
2f2ade61
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
44 deletions
+6
-44
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+0
-0
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+4
-12
ddxLoad.c
nx-X11/programs/Xserver/xkb/ddxLoad.c
+2
-32
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
b1d3f2ca
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
b1d3f2ca
...
...
@@ -438,22 +438,14 @@ Bool nxagentReconnectSession(void)
if
(
nxagentKeyboard
!=
NULL
)
{
int
size
;
size
=
strlen
(
nxagentKeyboard
);
if
((
nxagentOldKeyboard
=
malloc
(
size
+
1
))
!=
NULL
)
nxagentOldKeyboard
=
strndup
(
nxagentKeyboard
,
strlen
(
nxagentKeyboard
));
if
(
nxagentOldKeyboard
==
NULL
)
{
strncpy
(
nxagentOldKeyboard
,
nxagentKeyboard
,
size
);
nxagentOldKeyboard
[
size
]
=
'\0'
;
/* 0 means reconnection failed */
return
0
;
}
}
if
(
nxagentKeyboard
)
{
free
(
nxagentKeyboard
);
nxagentKeyboard
=
NULL
;
}
...
...
nx-X11/programs/Xserver/xkb/ddxLoad.c
View file @
b1d3f2ca
...
...
@@ -223,8 +223,8 @@ static int NXVerifyXkbBaseDirectory(const char *dirPath)
{
#ifdef TEST
fprintf
(
stderr
,
"NXVerifyXkbBaseDirectory:
Can't find the keymap.dir file [%s]
.
\n
"
,
rulesBaseFilePath
);
fprintf
(
stderr
,
"NXVerifyXkbBaseDirectory:
Xkb Base Directory [%s] is not valid (can't find file [%s])
.
\n
"
,
dirPath
,
rulesBaseFilePath
);
#endif
free
(
rulesBaseFilePath
);
...
...
@@ -767,36 +767,6 @@ char tmpname[PATH_MAX];
strncpy
(
nameRtrn
,
keymap
,
nameRtrnLen
);
nameRtrn
[
nameRtrnLen
-
1
]
=
'\0'
;
}
#if defined(Lynx) && defined(__i386__) && defined(NEED_POPEN_WORKAROUND)
/* somehow popen/pclose is broken on LynxOS AT 2.3.0/2.4.0!
* the problem usually shows up with XF86Setup
* this hack waits at max 5 seconds after pclose() returns
* for the output of the xkbcomp output file.
* I didn't manage to get a patch in time for the 3.2 release
*/
{
int
i
;
char
name
[
PATH_MAX
];
#ifdef NXAGENT_SERVER
if
(
_NXGetXkbCompPath
(
XkbBaseDirectory
)
!=
NULL
)
sprintf
(
name
,
"%s/%s%s.xkm"
,
_NXGetXkbCompPath
(
XkbBaseDirectory
)
,
xkm_output_dir
,
keymap
);
#else
if
(
XkbBaseDirectory
!=
NULL
)
sprintf
(
name
,
"%s/%s%s.xkm"
,
XkbBaseDirectory
,
xkm_output_dir
,
keymap
);
#endif
else
sprintf
(
name
,
"%s%s.xkm"
,
xkm_output_dir
,
keymap
);
for
(
i
=
0
;
i
<
10
;
i
++
)
{
if
(
access
(
name
,
0
)
==
0
)
break
;
usleep
(
500000
);
}
#ifdef DEBUG
if
(
i
)
ErrorF
(
">>>> Waited %d times for %s
\n
"
,
i
,
name
);
#endif
}
#endif
if
(
buf
!=
NULL
)
free
(
buf
);
return
True
;
...
...
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