mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-02-05 20:45:49 +01:00
Allow 0 degree transform (normal transform).
This commit is contained in:
parent
2f7247e08a
commit
9032be4f08
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ struct cmd_results *output_cmd_transform(int argc, char **argv) {
|
||||||
return cmd_results_new(CMD_INVALID, "Missing transform argument.");
|
return cmd_results_new(CMD_INVALID, "Missing transform argument.");
|
||||||
}
|
}
|
||||||
enum wl_output_transform transform;
|
enum wl_output_transform transform;
|
||||||
if (strcmp(*argv, "normal") == 0) {
|
if (strcmp(*argv, "normal") == 0 ||
|
||||||
|
strcmp(*argv, "0") == 0) {
|
||||||
transform = WL_OUTPUT_TRANSFORM_NORMAL;
|
transform = WL_OUTPUT_TRANSFORM_NORMAL;
|
||||||
} else if (strcmp(*argv, "90") == 0) {
|
} else if (strcmp(*argv, "90") == 0) {
|
||||||
transform = WL_OUTPUT_TRANSFORM_90;
|
transform = WL_OUTPUT_TRANSFORM_90;
|
||||||
|
|
Loading…
Add table
Reference in a new issue