aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/output/transform.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/output/transform.c b/sway/commands/output/transform.c
index 2a3d1d4b..5e6efb5b 100644
--- a/sway/commands/output/transform.c
+++ b/sway/commands/output/transform.c
@@ -50,6 +50,10 @@ struct cmd_results *output_cmd_transform(int argc, char **argv) {
return cmd_results_new(CMD_INVALID, "Invalid output transform.");
}
+ // Sway uses clockwise transforms, while WL_OUTPUT_TRANSFORM_* describe
+ // anti-clockwise transforms
+ transform = invert_rotation_direction(transform);
+
struct output_config *output = config->handler_context.output_config;
config->handler_context.leftovers.argc = argc - 1;
config->handler_context.leftovers.argv = argv + 1;