We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b2943c commit 022f749Copy full SHA for 022f749
1 file changed
WeaselUI/WeaselPanel.cpp
@@ -483,8 +483,11 @@ LRESULT WeaselPanel::OnMouseMove(UINT uMsg,
483
// Ignore if mouse screen position not changed
484
CPoint ptScreen = point;
485
ClientToScreen(&ptScreen);
486
- if (ptScreen == m_lastMousePos)
+ if (ptScreen == m_lastMousePos || m_lastMousePos.x == -1) {
487
+ if (m_lastMousePos.x == -1)
488
+ m_lastMousePos = ptScreen;
489
return 0;
490
+ }
491
m_lastMousePos = ptScreen;
492
493
for (size_t i = 0; i < m_candidateCount && i < MAX_CANDIDATES_COUNT; ++i) {
@@ -1151,6 +1154,7 @@ LRESULT WeaselPanel::OnDestroy(UINT uMsg,
1151
1154
LPARAM lParam,
1152
1155
BOOL& bHandled) {
1153
1156
m_hoverIndex = -1;
1157
+ m_lastMousePos = {-1, -1};
1158
m_sticky = false;
1159
delete m_layout;
1160
m_layout = NULL;
0 commit comments