autostart: cleanups and minimize interference with other patches

This commit is contained in:
A Frederick Christensen
2026-02-27 12:32:28 -06:00
parent cca388a012
commit 0ddfff3376
3 changed files with 20 additions and 174 deletions
@@ -1,7 +1,7 @@
From c4970eb320557aa55fde5f831677cc2f6d1f626a Mon Sep 17 00:00:00 2001
From e8932f159793012a54047c48b3710703a63c07fb Mon Sep 17 00:00:00 2001
From: A Frederick Christensen <dwl@ivories.org>
Date: Sun, 22 Feb 2026 19:34:11 -0600
Subject: [PATCH] Apply autostart patch
Date: Fri, 27 Feb 2026 12:29:02 -0600
Subject: [PATCH] Applied autostart patch
---
config.def.h | 6 ++++++
@@ -26,7 +26,7 @@ index 8a6eda0..6eb0db4 100644
/* app_id title tags mask isfloating monitor */
{ "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
diff --git a/dwl.c b/dwl.c
index 8a9715d..5da86c6 100644
index 8a9715d..3450817 100644
--- a/dwl.c
+++ b/dwl.c
@@ -248,6 +248,7 @@ static void arrange(Monitor *m);
@@ -37,16 +37,16 @@ index 8a9715d..5da86c6 100644
static void axisnotify(struct wl_listener *listener, void *data);
static void buttonpress(struct wl_listener *listener, void *data);
static void chvt(const Arg *arg);
@@ -457,6 +458,9 @@ static struct wlr_xwayland *xwayland;
/* attempt to encapsulate suck into one file */
#include "client.h"
@@ -451,6 +452,9 @@ static struct wl_listener xwayland_ready = {.notify = xwaylandready};
static struct wlr_xwayland *xwayland;
#endif
+static pid_t *autostart_pids;
+static size_t autostart_len;
+
/* function implementations */
void
applybounds(Client *c, struct wlr_box *bbox)
/* configuration, allows nested code to access above variables */
#include "config.h"
@@ -605,6 +609,27 @@ arrangelayers(Monitor *m)
}
}