mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
fix: allow use of the toggle argument for output allow_tearing
This commit is contained in:
parent
a9ba469715
commit
3bb8cd62a4
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@ struct cmd_results *output_cmd_allow_tearing(int argc, char **argv) {
|
||||||
return cmd_results_new(CMD_INVALID, "Missing allow_tearing argument");
|
return cmd_results_new(CMD_INVALID, "Missing allow_tearing argument");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parse_boolean(argv[0], true)) {
|
if (parse_boolean(argv[0],
|
||||||
|
(config->handler_context.output_config->allow_tearing == 1))) {
|
||||||
config->handler_context.output_config->allow_tearing = 1;
|
config->handler_context.output_config->allow_tearing = 1;
|
||||||
} else {
|
} else {
|
||||||
config->handler_context.output_config->allow_tearing = 0;
|
config->handler_context.output_config->allow_tearing = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue