aboutsummaryrefslogtreecommitdiff
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) {
if ((error = checkarg(argc, "attach", EXPECTED_AT_LEAST, 1))) {
return error;
}
+ struct seat_config *current_seat_config =
+ config->handler_context.seat_config;
if (!current_seat_config) {
return cmd_results_new(CMD_FAILURE, "attach", "No seat defined");
}