diff options
Diffstat (limited to 'sway/commands/output/transform.c')
-rw-r--r-- | sway/commands/output/transform.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/output/transform.c b/sway/commands/output/transform.c index 5e6efb5b..f4fcc8c9 100644 --- a/sway/commands/output/transform.c +++ b/sway/commands/output/transform.c | |||
@@ -59,6 +59,10 @@ struct cmd_results *output_cmd_transform(int argc, char **argv) { | |||
59 | config->handler_context.leftovers.argv = argv + 1; | 59 | config->handler_context.leftovers.argv = argv + 1; |
60 | if (argc > 1 && | 60 | if (argc > 1 && |
61 | (strcmp(argv[1], "clockwise") == 0 || strcmp(argv[1], "anticlockwise") == 0)) { | 61 | (strcmp(argv[1], "clockwise") == 0 || strcmp(argv[1], "anticlockwise") == 0)) { |
62 | if (config->reloading) { | ||
63 | return cmd_results_new(CMD_INVALID, | ||
64 | "Relative transforms cannot be used in the configuration file"); | ||
65 | } | ||
62 | if (!sway_assert(output->name != NULL, "Output config name not set")) { | 66 | if (!sway_assert(output->name != NULL, "Output config name not set")) { |
63 | return NULL; | 67 | return NULL; |
64 | } | 68 | } |