plugins/shakecursor: Don't trigger for cursor pushback
The shake detector is mistriggered by sporadic pointer movement when the cursor is pushed back by a screen edge.
As a way to prevent it, this change adds a bounding rectangle constraint. The cursor will move chaotically within a small bounding rectangle if it's pushed back. So it should be enough to just check the length of the diagonal.