Open djdisodo opened 2 years ago
Description i found that cursor jumps randomly when you move your cursor only when you grabbed
it occurs because you set last_x and last_y while another MotionNotify event is in the queue, possibly an event before XWarpPointer applied
last_x
last_y
MotionNotify
XWarpPointer
this patch make sure there is no MotionNotify event in the queue before setting last_x and last_y, warping cursor and sending mouse move
Description i found that cursor jumps randomly when you move your cursor only when you grabbed
it occurs because you set
last_x
andlast_y
while anotherMotionNotify
event is in the queue, possibly an event beforeXWarpPointer
appliedthis patch make sure there is no
MotionNotify
event in the queue before settinglast_x
andlast_y
, warping cursor and sending mouse move