sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 1bd7400c4db2cc9cb020326b574941c040cc37fe
parent 0952c9f91d4ef37e619bfb7f0b2474f8356c63c9
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Sat,  2 Feb 2019 02:42:10 -0500

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:
Msway/commands/seat/attach.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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) { if (!config->handler_context.seat_config) { return cmd_results_new(CMD_FAILURE, "No seat defined"); } + if (config->reading) { + return cmd_results_new(CMD_DEFER, NULL); + } struct seat_attachment_config *attachment = seat_attachment_config_new(); if (!attachment) {