1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

Misc: Update disabled-at-compile-time notes in the usage text

- Add disabled-at-compile-time note in usage text with NO_LIBCONFIG.

 - Fix the incorrect disabled-at-compile-time note for --backend.

 - Move position of the disabled-at-compile-time note of --dbus
   slightly.
This commit is contained in:
Richard Grenville 2015-01-11 16:22:08 +08:00
parent 4d0c663ad2
commit e4ff1a5130

View file

@ -4529,9 +4529,15 @@ usage(int ret) {
"--show-all-xerrors\n" "--show-all-xerrors\n"
" Show all X errors (for debugging).\n" " Show all X errors (for debugging).\n"
"\n" "\n"
#undef WARNING
#ifndef CONFIG_LIBCONFIG
#define WARNING WARNING_DISABLED
#else
#define WARNING
#endif
"--config path\n" "--config path\n"
" Look for configuration file at the path. Use /dev/null to avoid\n" " Look for configuration file at the path. Use /dev/null to avoid\n"
" loading configuration file.\n" " loading configuration file." WARNING "\n"
"\n" "\n"
"--write-pid-path path\n" "--write-pid-path path\n"
" Write process ID to a file.\n" " Write process ID to a file.\n"
@ -4741,6 +4747,12 @@ usage(int ret) {
" Crop shadow of a window fully on a particular Xinerama screen to the\n" " Crop shadow of a window fully on a particular Xinerama screen to the\n"
" screen." WARNING "\n" " screen." WARNING "\n"
"\n" "\n"
#undef WARNING
#ifndef CONFIG_VSYNC_OPENGL
#define WARNING "(GLX BACKENDS DISABLED AT COMPILE TIME)"
#else
#define WARNING
#endif
"--backend backend\n" "--backend backend\n"
" Choose backend. Possible choices are xrender, glx, and\n" " Choose backend. Possible choices are xrender, glx, and\n"
" xr_glx_hybrid" WARNING ".\n" " xr_glx_hybrid" WARNING ".\n"
@ -4795,12 +4807,6 @@ usage(int ret) {
"--xrender-sync-fence\n" "--xrender-sync-fence\n"
" Additionally use X Sync fence to sync clients' draw calls. Needed\n" " Additionally use X Sync fence to sync clients' draw calls. Needed\n"
" on nvidia-drivers with GLX backend for some users." WARNING "\n" " on nvidia-drivers with GLX backend for some users." WARNING "\n"
#undef WARNING
#ifndef CONFIG_DBUS
#define WARNING WARNING_DISABLED
#else
#define WARNING
#endif
"\n" "\n"
"--glx-fshader-win shader\n" "--glx-fshader-win shader\n"
" GLX backend: Use specified GLSL fragment shader for rendering window\n" " GLX backend: Use specified GLSL fragment shader for rendering window\n"
@ -4810,6 +4816,12 @@ usage(int ret) {
" Force all windows to be painted with blending. Useful if you have a\n" " Force all windows to be painted with blending. Useful if you have a\n"
" --glx-fshader-win that could turn opaque pixels transparent.\n" " --glx-fshader-win that could turn opaque pixels transparent.\n"
"\n" "\n"
#undef WARNING
#ifndef CONFIG_DBUS
#define WARNING WARNING_DISABLED
#else
#define WARNING
#endif
"--dbus\n" "--dbus\n"
" Enable remote control via D-Bus. See the D-BUS API section in the\n" " Enable remote control via D-Bus. See the D-BUS API section in the\n"
" man page for more details." WARNING "\n" " man page for more details." WARNING "\n"