aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/output
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/output')
-rw-r--r--sway/commands/output/transform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/output/transform.c b/sway/commands/output/transform.c
index 8613a8e7..8e5324ad 100644
--- a/sway/commands/output/transform.c
+++ b/sway/commands/output/transform.c
@@ -12,7 +12,8 @@ struct cmd_results *output_cmd_transform(int argc, char **argv) {
12 return cmd_results_new(CMD_INVALID, "Missing transform argument."); 12 return cmd_results_new(CMD_INVALID, "Missing transform argument.");
13 } 13 }
14 enum wl_output_transform transform; 14 enum wl_output_transform transform;
15 if (strcmp(*argv, "normal") == 0) { 15 if (strcmp(*argv, "normal") == 0 ||
16 strcmp(*argv, "0") == 0) {
16 transform = WL_OUTPUT_TRANSFORM_NORMAL; 17 transform = WL_OUTPUT_TRANSFORM_NORMAL;
17 } else if (strcmp(*argv, "90") == 0) { 18 } else if (strcmp(*argv, "90") == 0) {
18 transform = WL_OUTPUT_TRANSFORM_90; 19 transform = WL_OUTPUT_TRANSFORM_90;