mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-17 03:46:01 +01:00
data-device: send clock time in motion events
remove hack
This commit is contained in:
parent
d35e70a8c6
commit
5ee4b19691
1 changed files with 4 additions and 1 deletions
|
@ -513,7 +513,10 @@ void CWLDataDeviceProtocol::initiateDrag(WP<CWLDataSourceResource> currentSource
|
|||
if (!box.has_value())
|
||||
return;
|
||||
|
||||
dnd.focusedDevice->sendMotion(0 /* this is a hack */, V - box->pos());
|
||||
timespec timeNow;
|
||||
clock_gettime(CLOCK_MONOTONIC, &timeNow);
|
||||
|
||||
dnd.focusedDevice->sendMotion(timeNow.tv_sec * 1000 + timeNow.tv_nsec / 1000000, V - box->pos());
|
||||
LOGM(LOG, "Drag motion {}", V - box->pos());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue