Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.

Commit f2d07ac

Browse files
committed
Delay clipboard reset after paste.
1 parent 7c0da12 commit f2d07ac

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/entry.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,20 @@ void PerformSudoku()
581581
SendInput(ARRAYSIZE(retRelease), retRelease, sizeof(INPUT));
582582
}
583583

584+
wait = 0; /* wait for x ms */
585+
int delay = 50; /* wait at least 50 ms initially. */
586+
do
587+
{
588+
Sleep(delay);
589+
delay = 1;
590+
wait++;
591+
592+
if (wait >= 250)
593+
{
594+
break;
595+
}
596+
} while (MumbleLink->Context.IsTextboxFocused);
597+
584598
if (!cbPrevious.empty())
585599
{
586600
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, lenPrevious);

0 commit comments

Comments
 (0)