mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
Improve drag&drop stability on windows
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user