plugins/shakecursor: Ignore motion events with at least one pressed button
It reduces the chances of false triggering the plugin, for example if the user presses a mouse button and chaotically moves the pointer because they navigate in 3D space and what not.
(cherry picked from commit 0ddcc85f)