mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Allowed for execd commands to be spawned after abort
This commit is contained in:
parent
d785cbd54c
commit
ea9efc884d
5 changed files with 43 additions and 20 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "config.h"
|
||||
#include "commands.h"
|
||||
#include "handlers.h"
|
||||
#include "stringop.h"
|
||||
|
||||
static bool handle_output_created(wlc_handle output) {
|
||||
add_output(output);
|
||||
|
|
@ -165,11 +166,19 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
|
|||
|
||||
static void handle_wlc_ready(void) {
|
||||
sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue");
|
||||
|
||||
int i;
|
||||
for (i = 0; i < config->cmd_queue->length; ++i) {
|
||||
handle_command(config, config->cmd_queue->items[i]);
|
||||
}
|
||||
free_flat_list(config->cmd_queue);
|
||||
|
||||
if (config->failed) {
|
||||
sway_log(L_ERROR, "Programs have been execd, aborting!");
|
||||
sway_abort("Unable to load config");
|
||||
}
|
||||
|
||||
config->active = true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue