When using locked pointer (i.e. capture mode), it doesn't make sense to warp the cursor, so we disable it. This fixes #540.