From ae55861548e6d5ec049a47d06645bd647a5e1d9b Mon Sep 17 00:00:00 2001 From: Bill Doyle Date: Mon, 31 May 2021 19:47:10 -0400 Subject: Only defer seat attachment during initial startup Deferred commands are only run once, during sway startup. This means that deferring seat attachment based on whether we are reading the config prevents devices from being reattached to the correct seat during a config reload. Instead, only defer if the config is not yet active. Fixes #6048. (cherry picked from commit cad6e59b932e082d4e9c4d13b4210df9e4ac7cf3) --- sway/commands/seat/attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/seat/attach.c b/sway/commands/seat/attach.c index 7615eef9..00bfdab6 100644 --- a/sway/commands/seat/attach.c +++ b/sway/commands/seat/attach.c @@ -12,7 +12,7 @@ struct cmd_results *seat_cmd_attach(int argc, char **argv) { if (!config->handler_context.seat_config) { return cmd_results_new(CMD_FAILURE, "No seat defined"); } - if (config->reading) { + if (!config->active) { return cmd_results_new(CMD_DEFER, NULL); } -- cgit v1.2.3-54-g00ecf