Skip to content

Commit

Permalink
Improve drag&drop stability on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
albertony committed Dec 9, 2020
1 parent 357e0cc commit b125cf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/platform/MSWindowsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,7 @@ std::string& MSWindowsScreen::getDraggingFilename()
SWP_SHOWWINDOW);

// 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);
fakeKeyUp(1);
fakeMouseButton(kButtonLeft, false);
Expand Down

0 comments on commit b125cf3

Please sign in to comment.