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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/commands/seat/attach.c b/sway/commands/seat/attach.c
index 7615eef9..47d18546 100644
--- a/sway/commands/seat/attach.c
+++ b/sway/commands/seat/attach.c
@@ -1,4 +1,3 @@
1#define _POSIX_C_SOURCE 200809L
2#include <string.h> 1#include <string.h>
3#include "sway/commands.h" 2#include "sway/commands.h"
4#include "sway/config.h" 3#include "sway/config.h"
@@ -12,7 +11,7 @@ struct cmd_results *seat_cmd_attach(int argc, char **argv) {
12 if (!config->handler_context.seat_config) { 11 if (!config->handler_context.seat_config) {
13 return cmd_results_new(CMD_FAILURE, "No seat defined"); 12 return cmd_results_new(CMD_FAILURE, "No seat defined");
14 } 13 }
15 if (config->reading) { 14 if (!config->active) {
16 return cmd_results_new(CMD_DEFER, NULL); 15 return cmd_results_new(CMD_DEFER, NULL);
17 } 16 }
18 17