Skip to content

Commit

Permalink
options: add --no-vsync command line option
Browse files Browse the repository at this point in the history
Otherwise there is no way to override the settings in the config file.

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Oct 23, 2019
1 parent d9aa32b commit ed6a96d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions man/compton.1.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ OPTIONS
*--refresh-rate* 'REFRESH_RATE'::
Specify refresh rate of the screen. If not specified or 0, compton will try detecting this with X RandR extension.

*--vsync*::
Enable VSync.
*--vsync*, *--no-vsync*::
Enable/disable VSync.

*--sw-opti*::
Limit compton to repaint at most once every 1 / 'refresh_rate' second to boost performance. This should not be used with *--vsync* drm/opengl/opengl-oml as they essentially does *--sw-opti*'s job already, unless you wish to specify a lower refresh rate than the actual value.
Expand Down Expand Up @@ -166,7 +166,7 @@ OPTIONS
*--detect-client-leader*::
Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if *--detect-transient* is enabled, too.

*--blur-method, --blur-size, --blur-deviation*::
*--blur-method*, *--blur-size*, *--blur-deviation*::
Parameters for background blurring, see the *BLUR* section for more information.

*--blur-background*::
Expand Down
4 changes: 4 additions & 0 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ static const struct option longopts[] = {
{"log-file", required_argument, NULL, 322},
{"use-damage", no_argument, NULL, 323},
{"no-use-damage", no_argument, NULL, 324},
{"no-vsync", no_argument, NULL, 325},
{"experimental-backends", no_argument, NULL, 733},
{"monitor-repaint", no_argument, NULL, 800},
{"diagnostics", no_argument, NULL, 801},
Expand Down Expand Up @@ -789,6 +790,9 @@ void get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
case 324:
opt->use_damage = false;
break;
case 325:
opt->vsync = false;
break;
P_CASEBOOL(733, experimental_backends);
P_CASEBOOL(800, monitor_repaint);
case 801: opt->print_diagnostics = true; break;
Expand Down

0 comments on commit ed6a96d

Please sign in to comment.