diff --git a/src/wine-host/xdnd-proxy.cpp b/src/wine-host/xdnd-proxy.cpp index 4f38441d..c00d6833 100644 --- a/src/wine-host/xdnd-proxy.cpp +++ b/src/wine-host/xdnd-proxy.cpp @@ -353,7 +353,7 @@ void WineXdndProxy::run_xdnd_loop() { std::optional last_pointer_x; std::optional last_pointer_y; while (left_mouse_button_held && !escape_pressed) { - usleep(1000); + std::this_thread::sleep_for(1ms); std::unique_ptr generic_event; while (generic_event.reset(xcb_poll_for_event(x11_connection.get())), @@ -519,7 +519,7 @@ void WineXdndProxy::run_xdnd_loop() { break; } - usleep(1000); + std::this_thread::sleep_for(1ms); std::unique_ptr generic_event; while (generic_event.reset(xcb_poll_for_event(x11_connection.get())),