Commit d86b0547 authored by Fuminobu TAKEYAMA's avatar Fuminobu TAKEYAMA Committed by Kurt Hindenburg
Browse files

Notify current cursor position might be changed to input methods

This patch fixes the issue where the input method (e.g. IBus or
Fcitx) window would not be under the cursor.

Also, Qt::ImMicroFocus is depreciated so use Qt::ImCursorRectangle.

BUG:  420799
FIXED-IN: 20.08
parent 877fd0ca
......@@ -129,6 +129,9 @@ void TerminalDisplay::setScreenWindow(ScreenWindow* window)
connect(, &Konsole::ScreenWindow::scrolled, this, [this]() {
_filterUpdateRequired = true;
connect(, &Konsole::ScreenWindow::outputChanged, this, [this]() {
......@@ -3407,7 +3410,7 @@ QVariant TerminalDisplay::inputMethodQuery(Qt::InputMethodQuery query) const
const QPoint cursorPos = cursorPosition();
switch (query) {
case Qt::ImMicroFocus:
case Qt::ImCursorRectangle:
return imageToWidget(QRect(cursorPos.x(), cursorPos.y(), 1, 1));
case Qt::ImFont:
return font();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment