mirror of
https://github.com/swaywm/sway.git
synced 2025-01-30 20:56:43 +00:00
Fix indent
This commit is contained in:
parent
1092f49747
commit
af948a9498
|
@ -12,7 +12,7 @@ enum gaps_op {
|
||||||
GAPS_OP_SET,
|
GAPS_OP_SET,
|
||||||
GAPS_OP_ADD,
|
GAPS_OP_ADD,
|
||||||
GAPS_OP_SUBTRACT,
|
GAPS_OP_SUBTRACT,
|
||||||
GAPS_OP_BOUNDED_SUBTRACT,
|
GAPS_OP_BOUNDED_SUBTRACT,
|
||||||
GAPS_OP_TOGGLE
|
GAPS_OP_TOGGLE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -104,13 +104,13 @@ static void apply_gaps_op(int *prop, enum gaps_op op, int amount) {
|
||||||
case GAPS_OP_SUBTRACT:
|
case GAPS_OP_SUBTRACT:
|
||||||
*prop -= amount;
|
*prop -= amount;
|
||||||
break;
|
break;
|
||||||
case GAPS_OP_BOUNDED_SUBTRACT:
|
case GAPS_OP_BOUNDED_SUBTRACT:
|
||||||
if (amount <= *prop) {
|
if (amount <= *prop) {
|
||||||
*prop -= amount;
|
*prop -= amount;
|
||||||
} else {
|
} else {
|
||||||
*prop = 0;
|
*prop = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GAPS_OP_TOGGLE:
|
case GAPS_OP_TOGGLE:
|
||||||
*prop = *prop ? 0 : amount;
|
*prop = *prop ? 0 : amount;
|
||||||
break;
|
break;
|
||||||
|
@ -192,8 +192,8 @@ static struct cmd_results *gaps_set_runtime(int argc, char **argv) {
|
||||||
data.operation = GAPS_OP_ADD;
|
data.operation = GAPS_OP_ADD;
|
||||||
} else if (strcasecmp(argv[2], "minus") == 0) {
|
} else if (strcasecmp(argv[2], "minus") == 0) {
|
||||||
data.operation = GAPS_OP_SUBTRACT;
|
data.operation = GAPS_OP_SUBTRACT;
|
||||||
} else if (strcasecmp(argv[2], "bounded_minus") == 0) {
|
} else if (strcasecmp(argv[2], "bounded_minus") == 0) {
|
||||||
data.operation = GAPS_OP_BOUNDED_SUBTRACT;
|
data.operation = GAPS_OP_BOUNDED_SUBTRACT;
|
||||||
} else if (strcasecmp(argv[2], "toggle") == 0) {
|
} else if (strcasecmp(argv[2], "toggle") == 0) {
|
||||||
data.operation = GAPS_OP_TOGGLE;
|
data.operation = GAPS_OP_TOGGLE;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue