aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/seat/attach.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/seat/attach.c')
-rw-r--r--sway/commands/seat/attach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/seat/attach.c b/sway/commands/seat/attach.c
index 80ec63ce..3e771c00 100644
--- a/sway/commands/seat/attach.c
+++ b/sway/commands/seat/attach.c
@@ -12,6 +12,8 @@ struct cmd_results *seat_cmd_attach(int argc, char **argv) {
12 if ((error = checkarg(argc, "attach", EXPECTED_AT_LEAST, 1))) { 12 if ((error = checkarg(argc, "attach", EXPECTED_AT_LEAST, 1))) {
13 return error; 13 return error;
14 } 14 }
15 struct seat_config *current_seat_config =
16 config->handler_context.seat_config;
15 if (!current_seat_config) { 17 if (!current_seat_config) {
16 return cmd_results_new(CMD_FAILURE, "attach", "No seat defined"); 18 return cmd_results_new(CMD_FAILURE, "attach", "No seat defined");
17 } 19 }