Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
6f3f7167
Commit
6f3f7167
authored
Jun 18, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40
parents
730f7716
8039a6f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
UBKeyboardPalette_linux.cpp
src/gui/UBKeyboardPalette_linux.cpp
+5
-3
No files found.
src/gui/UBKeyboardPalette_linux.cpp
View file @
6f3f7167
...
...
@@ -216,6 +216,8 @@ void UBKeyboardPalette::onActivated(bool activated)
void
UBKeyboardPalette
::
onLocaleChanged
(
UBKeyboardLocale
*
locale
)
{
const
int
maxMapOffset
=
3
;
//Suppose to have at least 2 keysym groups due to X11 xlib specification
Display
*
display
=
XOpenDisplay
(
0
);
if
(
display
==
NULL
)
return
;
...
...
@@ -232,7 +234,7 @@ void UBKeyboardPalette::onLocaleChanged(UBKeyboardLocale* locale)
KEYCODE
&
kc
=
(
*
locale
)[
i
]
->
codes
[
j
];
if
(
!
kc
.
empty
())
{
if
(
kc
.
modifier
<=
5
)
if
(
kc
.
modifier
<=
maxMapOffset
)
keySyms
[
kc
.
code
*
byte_per_code
+
kc
.
modifier
]
=
kc
.
symbol
;
}
...
...
@@ -248,10 +250,10 @@ void UBKeyboardPalette::onLocaleChanged(UBKeyboardLocale* locale)
KEYCODE
&
kc
=
(
*
locale
)[
i
]
->
codes
[
j
];
if
(
!
kc
.
empty
())
{
if
(
kc
.
modifier
>
5
)
if
(
kc
.
modifier
>
maxMapOffset
)
{
for
(
int
i1
=
0
;
i1
<
SYMBOL_KEYS_COUNT
;
i1
++
)
for
(
int
j1
=
0
;
j1
<=
5
;
j1
++
)
for
(
int
j1
=
0
;
j1
<=
maxMapOffset
;
j1
++
)
if
(
keySyms
[
i1
*
byte_per_code
+
j1
]
==
NoSymbol
)
{
kc
.
code
=
i1
;
...
...
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