aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/output
diff options
context:
space:
mode:
authorConnor E <38229097+c-edw@users.noreply.github.com>2019-02-25 09:40:47 +0000
committeremersion <contact@emersion.fr>2019-02-25 11:28:29 +0100
commit9032be4f08a0b58da383d5d3b965719ad0ef78f1 (patch)
treef5b0d6146856b243cb62c6696714cfa7cd9e92b6 /sway/commands/output
parent2f7247e08a16610228067c9ec34d2b6d897e15fa (diff)
Allow 0 degree transform (normal transform).
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) {
return cmd_results_new(CMD_INVALID, "Missing transform argument.");
}
enum wl_output_transform transform;
- if (strcmp(*argv, "normal") == 0) {
+ if (strcmp(*argv, "normal") == 0 ||
+ strcmp(*argv, "0") == 0) {
transform = WL_OUTPUT_TRANSFORM_NORMAL;
} else if (strcmp(*argv, "90") == 0) {
transform = WL_OUTPUT_TRANSFORM_90;