[ipc] consider cursor rect when use mouse to move