update autostart patch

1ea0c8b1
This commit is contained in:
Leonardo Hernández Hernández 2024-06-07 15:34:54 -06:00
parent 3a5782449b
commit 6830a60d8a
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
2 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@ Note: Commands from array are executed using execvp(). So if you need to execute
### Download
- [git branch](https://codeberg.org/sevz/dwl/src/branch/autostart)
- [2024-03-31](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/autostart/autostart.patch)
- [2024-06-07](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/autostart/autostart.patch)
### Authors
- [sevz](https://codeberg.org/sevz)

View File

@ -1,4 +1,4 @@
From 06bf85899ac55cdb744e8be0028e01519aff927a Mon Sep 17 00:00:00 2001
From 1ea0c8b1ef7fe1c1506d0e475f4c047e78aac79b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
<leohdz172@proton.me>
Date: Sat, 8 Jul 2023 17:11:36 -0600
@ -15,7 +15,7 @@ Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
2 files changed, 61 insertions(+), 5 deletions(-)
diff --git a/config.def.h b/config.def.h
index 8847e58f..1ca74a3b 100644
index a784eb4f..247a25d2 100644
--- a/config.def.h
+++ b/config.def.h
@@ -20,6 +20,13 @@ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You ca
@ -33,10 +33,10 @@ index 8847e58f..1ca74a3b 100644
/* app_id title tags mask isfloating monitor */
/* examples: */
diff --git a/dwl.c b/dwl.c
index 39ce68c0..532ae1ce 100644
index 6f041a0d..a88c8844 100644
--- a/dwl.c
+++ b/dwl.c
@@ -246,6 +246,7 @@ static void arrange(Monitor *m);
@@ -247,6 +247,7 @@ static void arrange(Monitor *m);
static void arrangelayer(Monitor *m, struct wl_list *list,
struct wlr_box *usable_area, int exclusive);
static void arrangelayers(Monitor *m);
@ -44,7 +44,7 @@ index 39ce68c0..532ae1ce 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);
@@ -424,6 +425,9 @@ static xcb_atom_t netatom[NetLast];
@@ -426,6 +427,9 @@ static xcb_atom_t netatom[NetLast];
/* attempt to encapsulate suck into one file */
#include "client.h"
@ -54,7 +54,7 @@ index 39ce68c0..532ae1ce 100644
/* function implementations */
void
applybounds(Client *c, struct wlr_box *bbox)
@@ -558,6 +562,27 @@ arrangelayers(Monitor *m)
@@ -574,6 +578,27 @@ arrangelayers(Monitor *m)
}
}
@ -82,7 +82,7 @@ index 39ce68c0..532ae1ce 100644
void
axisnotify(struct wl_listener *listener, void *data)
{
@@ -655,11 +680,21 @@ checkidleinhibitor(struct wlr_surface *exclude)
@@ -671,11 +696,21 @@ checkidleinhibitor(struct wlr_surface *exclude)
void
cleanup(void)
{
@ -104,7 +104,7 @@ index 39ce68c0..532ae1ce 100644
if (child_pid > 0) {
kill(child_pid, SIGTERM);
waitpid(child_pid, NULL, 0);
@@ -1371,18 +1406,31 @@ void
@@ -1434,18 +1469,31 @@ void
handlesig(int signo)
{
if (signo == SIGCHLD) {
@ -141,7 +141,7 @@ index 39ce68c0..532ae1ce 100644
} else if (signo == SIGINT || signo == SIGTERM) {
quit(NULL);
}
@@ -2073,6 +2121,7 @@ run(char *startup_cmd)
@@ -2136,6 +2184,7 @@ run(char *startup_cmd)
die("startup: backend_start");
/* Now that the socket exists and the backend is started, run the startup command */
@ -150,5 +150,5 @@ index 39ce68c0..532ae1ce 100644
int piperw[2];
if (pipe(piperw) < 0)
--
2.44.0
2.45.2