File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
* Update configuration.md
10
10
* Correct scan code to properly recognize F11 and F12 key
11
+ * Fix KDE plasmashell crash #609
11
12
12
13
## 3.0.1
13
14
Original file line number Diff line number Diff line change 1
1
#include " input_context.hpp"
2
2
3
3
#include < QMetaEnum>
4
- #include < QtCore/QCoreApplication >
4
+ #include < QtGui/QGuiApplication >
5
5
#include < QtGui/QKeyEvent>
6
6
#include < QtGui/QTextCharFormat>
7
7
@@ -90,6 +90,7 @@ bool KimeInputContext::filterEvent(const QEvent *event) {
90
90
}
91
91
92
92
void KimeInputContext::preedit_str (kime::RustStr s) {
93
+ this ->focus_object = qApp->focusObject ();
93
94
if (!this ->focus_object ) {
94
95
return ;
95
96
}
@@ -105,6 +106,7 @@ void KimeInputContext::preedit_str(kime::RustStr s) {
105
106
}
106
107
107
108
void KimeInputContext::commit_str (kime::RustStr s) {
109
+ this ->focus_object = qApp->focusObject ();
108
110
if (!this ->focus_object ) {
109
111
return ;
110
112
}
You can’t perform that action at this time.
0 commit comments