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
+10 -10
View File
@@ -1,7 +1,7 @@
From aa7e36e6dfe3c08f13339e571ad886cf51c76708 Mon Sep 17 00:00:00 2001
From d2e2e61aeb25ad71c2c559994968ba64e0974503 Mon Sep 17 00:00:00 2001
From: A Frederick Christensen <dwl@ivories.org>
Date: Sun, 22 Feb 2026 19:23:48 -0600
Subject: [PATCH] port autostart patch from dwm
Date: Fri, 27 Feb 2026 12:23:04 -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 44f3ad9..c7b717d 100644
index 44f3ad9..e7b6199 100644
--- a/dwl.c
+++ b/dwl.c
@@ -246,6 +246,7 @@ static void arrange(Monitor *m);
@@ -37,16 +37,16 @@ index 44f3ad9..c7b717d 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);
@@ -455,6 +456,9 @@ static struct wlr_xwayland *xwayland;
/* attempt to encapsulate suck into one file */
#include "client.h"
@@ -449,6 +450,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"
@@ -603,6 +607,27 @@ arrangelayers(Monitor *m)
}
}