input: Move drag handling to data-device.c