aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/seat.c')
-rw-r--r--sway/commands/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/seat.c b/sway/commands/seat.c
index 5b23dcc..aa36ba9 100644
--- a/sway/commands/seat.c
+++ b/sway/commands/seat.c
@@ -50,5 +50,5 @@ struct cmd_results *cmd_seat(int argc, char **argv) {
}
config->handler_context.seat_config = NULL;
- return cmd_results_new(CMD_SUCCESS, NULL);
+ return res ? res : cmd_results_new(CMD_SUCCESS, NULL);
}