Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
2bbab06f
Commit
2bbab06f
authored
Sep 02, 2020
by
Andrey Butirsky
Committed by
David Edmundson
Sep 29, 2020
Browse files
fix: wrong keyboard layout OSD notification
DIGEST:
BUG: 426120
parent
769c8959
Changes
1
Hide whitespace changes
Inline
Side-by-side
keyboard_input.cpp
View file @
2bbab06f
...
...
@@ -197,10 +197,9 @@ void KeyboardInputRedirection::processKey(uint32_t key, InputRedirection::Keyboa
Q_UNREACHABLE
();
}
const
quint32
previousLayout
=
m_xkb
->
currentLayout
();
if
(
!
autoRepeat
)
{
const
quint32
previousLayout
=
m_xkb
->
currentLayout
();
m_xkb
->
updateKey
(
key
,
state
);
m_keyboardLayout
->
checkLayoutChange
(
previousLayout
);
}
const
xkb_keysym_t
keySym
=
m_xkb
->
currentKeysym
();
...
...
@@ -222,6 +221,8 @@ void KeyboardInputRedirection::processKey(uint32_t key, InputRedirection::Keyboa
m_input
->
processFilters
(
std
::
bind
(
&
InputEventFilter
::
keyEvent
,
std
::
placeholders
::
_1
,
&
event
));
m_xkb
->
forwardModifiers
();
m_keyboardLayout
->
checkLayoutChange
(
previousLayout
);
}
void
KeyboardInputRedirection
::
processModifiers
(
uint32_t
modsDepressed
,
uint32_t
modsLatched
,
uint32_t
modsLocked
,
uint32_t
group
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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