mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Fix deferred command handling
This commit is contained in:
parent
4931d0ddc5
commit
ec65286606
4 changed files with 20 additions and 6 deletions
|
|
@ -429,9 +429,16 @@ int main(int argc, char **argv) {
|
|||
|
||||
security_sanity_check();
|
||||
|
||||
config->active = true;
|
||||
setenv("WAYLAND_DISPLAY", server.socket, true);
|
||||
if (!terminate_request) {
|
||||
if (!server_start_backend(&server)) {
|
||||
sway_terminate(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
config->active = true;
|
||||
// Execute commands until there are none left
|
||||
wlr_log(WLR_DEBUG, "Running deferred commands");
|
||||
while (config->cmd_queue->length) {
|
||||
char *line = config->cmd_queue->items[0];
|
||||
struct cmd_results *res = execute_command(line, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue