mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Added in glitchy disabling
This commit is contained in:
parent
e232241466
commit
98fad060e2
4 changed files with 21 additions and 0 deletions
|
|
@ -372,8 +372,13 @@ static bool cmd_output(struct sway_config *config, int argc, char **argv) {
|
|||
struct output_config *output = calloc(1, sizeof(struct output_config));
|
||||
output->x = output->y = output->width = output->height = -1;
|
||||
output->name = strdup(argv[0]);
|
||||
output->enabled = true;
|
||||
|
||||
// TODO: atoi doesn't handle invalid numbers
|
||||
|
||||
if (strcmp(argv[1], "disable") == 0) {
|
||||
output->enabled = false;
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 1; i < argc; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue