Fix held motion events with event compression off
As per @lb90's request, I'm converting my comment #4946 (comment 1485766) into a MR in the hope it gets reviewed to make sure it's the right solution. From the commit message,
Disable pending motion events if event compression is disabled, so that
the last motion event doesn't get left in the queue and never delivered.Fixes #4946 (closed)