Page MenuHome

Command line option to disable cursor warping entirely
Needs ReviewPublic

Authored by Campbell Barton (campbellbarton) on Aug 18 2022, 4:45 AM.

Details

Summary

Add the command line argument '--no-cursor-warp' which overrides the preference to disable cursor warping.

The command line argument is intended to be used when accessing Blender using remote desktop software, where cursor warping isn't supported.

This means users preferences don't have to be modified temporarily to disable cursor warping.


Notes:

  • Since writing this patch I've thought about making this a user preference, so people don't have to use the command line to access this (it could be both a preference and a command line option too). Part of this hinges on considering this to officially supported behavior or not as there will be some cases this doesn't give such a good user experience.
  • Currently this doesn't disable grabbing the cursor, I don't see a problem with this as it means the window wont loose focus when grabbed - even when using a remote desktop, but there might be some cases we would want to disable grabbing too.

Diff Detail

Repository
rB Blender
Branch
TEMP-NO-CURSOR-WARP-CMD (branched from master)
Build Status
Buildable 23377
Build 23377: arc lint + arc unit