Improve drag&drop stability on windows

This commit is contained in:
albertony 2020-12-06 17:25:24 +01:00
parent 357e0ccc7e
commit b125cf3da7
1 changed files with 1 additions and 0 deletions

View File

@ -1878,6 +1878,7 @@ std::string& MSWindowsScreen::getDraggingFilename()
SWP_SHOWWINDOW); SWP_SHOWWINDOW);
// TODO: fake these keys properly // TODO: fake these keys properly
ARCH->sleep(.05f); // A tiny sleep here makes the DragEnter event on m_dropWindow trigger much more consistently
fakeKeyDown(kKeyEscape, 8192, 1); fakeKeyDown(kKeyEscape, 8192, 1);
fakeKeyUp(1); fakeKeyUp(1);
fakeMouseButton(kButtonLeft, false); fakeMouseButton(kButtonLeft, false);