Skip to content

Commit

Permalink
Fix copy-paste error that not set height when there's no intersection.
Browse files Browse the repository at this point in the history
Fix #60
  • Loading branch information
wengxt committed Apr 21, 2024
1 parent 24c7dfc commit b347ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qt5/platforminputcontext/fcitxcandidatewindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,11 @@ void FcitxCandidateWindow::updateClientSideUI(
}
if (nativeCursorRect.bottom() < windowGeometry.top()) {
nativeCursorRect.setTop(windowGeometry.top());
nativeCursorRect.setWidth(1);
nativeCursorRect.setHeight(1);
}
if (nativeCursorRect.top() > windowGeometry.bottom()) {
nativeCursorRect.setTop(windowGeometry.bottom());
nativeCursorRect.setWidth(1);
nativeCursorRect.setHeight(1);
}
}
bool wasVisible = isVisible();
Expand Down

0 comments on commit b347ccf

Please sign in to comment.