diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-02 02:42:10 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-03 00:23:28 +0100 |
commit | 1bd7400c4db2cc9cb020326b574941c040cc37fe (patch) | |
tree | 3a75d82e82ef448dcdd9fc683c1893d65276f088 /sway | |
parent | Fix #3445: swaybar tray inerited thems not processed (diff) | |
download | sway-1bd7400c4db2cc9cb020326b574941c040cc37fe.tar.gz sway-1bd7400c4db2cc9cb020326b574941c040cc37fe.tar.zst sway-1bd7400c4db2cc9cb020326b574941c040cc37fe.zip |
seat_cmd_attach: defer while reading
Since the seats and inputs are not yet available while the config is
being read, defer seat attachment requests
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands/seat/attach.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/seat/attach.c b/sway/commands/seat/attach.c index 1e509a58..7615eef9 100644 --- a/sway/commands/seat/attach.c +++ b/sway/commands/seat/attach.c | |||
@@ -12,6 +12,9 @@ struct cmd_results *seat_cmd_attach(int argc, char **argv) { | |||
12 | if (!config->handler_context.seat_config) { | 12 | if (!config->handler_context.seat_config) { |
13 | return cmd_results_new(CMD_FAILURE, "No seat defined"); | 13 | return cmd_results_new(CMD_FAILURE, "No seat defined"); |
14 | } | 14 | } |
15 | if (config->reading) { | ||
16 | return cmd_results_new(CMD_DEFER, NULL); | ||
17 | } | ||
15 | 18 | ||
16 | struct seat_attachment_config *attachment = seat_attachment_config_new(); | 19 | struct seat_attachment_config *attachment = seat_attachment_config_new(); |
17 | if (!attachment) { | 20 | if (!attachment) { |