diff options
author | Connor E <38229097+c-edw@users.noreply.github.com> | 2019-02-25 09:40:47 +0000 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-25 11:28:29 +0100 |
commit | 9032be4f08a0b58da383d5d3b965719ad0ef78f1 (patch) | |
tree | f5b0d6146856b243cb62c6696714cfa7cd9e92b6 /sway/commands | |
parent | swaybar: add overlay mode (fix #1620) (diff) | |
download | sway-9032be4f08a0b58da383d5d3b965719ad0ef78f1.tar.gz sway-9032be4f08a0b58da383d5d3b965719ad0ef78f1.tar.zst sway-9032be4f08a0b58da383d5d3b965719ad0ef78f1.zip |
Allow 0 degree transform (normal transform).
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/output/transform.c | 3 |
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; |