From d43fabd4c072e54ed6233c532fb229a36ebb3375 Mon Sep 17 00:00:00 2001 From: 45mg <45mg@no.mail> Date: Fri, 19 Jul 2024 08:55:58 +0000 Subject: [PATCH] autostart: rebase onto 0.7 --- patches/autostart/autostart.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/patches/autostart/autostart.patch b/patches/autostart/autostart.patch index 20fd3c0..12e6d7e 100644 --- a/patches/autostart/autostart.patch +++ b/patches/autostart/autostart.patch @@ -1,4 +1,4 @@ -From d2829ed5c970c7e7692e39c451526b3860dabb2f Mon Sep 17 00:00:00 2001 +From 787f7252d63945996f009828aff3c44afd0f7781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sat, 8 Jul 2023 17:11:36 -0600 @@ -15,7 +15,7 @@ Signed-off-by: Leonardo Hernández Hernández 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h -index 646a3d66..c3ca3a20 100644 +index 22d2171..8dc6502 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 @@ -29,11 +29,11 @@ index 646a3d66..c3ca3a20 100644 +}; + + + /* NOTE: ALWAYS keep a rule declared even if you don't use rules (e.g leave at least one example) */ static const Rule rules[] = { /* app_id title tags mask isfloating monitor */ - /* examples: */ diff --git a/dwl.c b/dwl.c -index 00e9cc1e..5de32831 100644 +index 5bf995e..e8b8727 100644 --- a/dwl.c +++ b/dwl.c @@ -249,6 +249,7 @@ static void arrange(Monitor *m); @@ -44,7 +44,7 @@ index 00e9cc1e..5de32831 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); -@@ -429,6 +430,9 @@ static xcb_atom_t netatom[NetLast]; +@@ -432,6 +433,9 @@ static xcb_atom_t netatom[NetLast]; /* attempt to encapsulate suck into one file */ #include "client.h" @@ -54,7 +54,7 @@ index 00e9cc1e..5de32831 100644 /* function implementations */ void applybounds(Client *c, struct wlr_box *bbox) -@@ -577,6 +581,27 @@ arrangelayers(Monitor *m) +@@ -580,6 +584,27 @@ arrangelayers(Monitor *m) } } @@ -82,7 +82,7 @@ index 00e9cc1e..5de32831 100644 void axisnotify(struct wl_listener *listener, void *data) { -@@ -672,11 +697,21 @@ checkidleinhibitor(struct wlr_surface *exclude) +@@ -676,11 +701,21 @@ checkidleinhibitor(struct wlr_surface *exclude) void cleanup(void) { @@ -104,7 +104,7 @@ index 00e9cc1e..5de32831 100644 if (child_pid > 0) { kill(-child_pid, SIGTERM); waitpid(child_pid, NULL, 0); -@@ -1438,18 +1473,31 @@ void +@@ -1497,18 +1532,31 @@ void handlesig(int signo) { if (signo == SIGCHLD) { @@ -141,7 +141,7 @@ index 00e9cc1e..5de32831 100644 } else if (signo == SIGINT || signo == SIGTERM) { quit(NULL); } -@@ -2169,6 +2217,7 @@ run(char *startup_cmd) +@@ -2224,6 +2272,7 @@ run(char *startup_cmd) die("startup: backend_start"); /* Now that the socket exists and the backend is started, run the startup command */