From ce4ffdd6af4b2c59c503df069f9013743c8cc761 Mon Sep 17 00:00:00 2001 From: C4FE1 Date: Fri, 20 Mar 2026 21:43:24 -0300 Subject: [PATCH] Add dwindle layout patch --- patches/dwindle/dwindle.patch | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/patches/dwindle/dwindle.patch b/patches/dwindle/dwindle.patch index caf5142..cce3fe6 100644 --- a/patches/dwindle/dwindle.patch +++ b/patches/dwindle/dwindle.patch @@ -1,12 +1,13 @@ -From e985b17e951f326e1459601cc39893609058c5ed Mon Sep 17 00:00:00 2001 +From 3240c7fdfb12403d75a06ce567357a0df74b280f Mon Sep 17 00:00:00 2001 From: C4FE1 -Date: Fri, 20 Mar 2026 21:07:24 -0300 +Date: Fri, 20 Mar 2026 21:30:41 -0300 Subject: [PATCH] dwl: add dwindle layout +dwl: add dwindle layout --- config.def.h | 1 + - dwl.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ - 2 files changed, 52 insertions(+) + dwl.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 54 insertions(+) diff --git a/config.def.h b/config.def.h index 8a6eda0..e1b823e 100644 @@ -21,7 +22,7 @@ index 8a6eda0..e1b823e 100644 { "[M]", monocle }, }; diff --git a/dwl.c b/dwl.c -index 101a45f..3b08073 100644 +index 101a45f..5f1b762 100644 --- a/dwl.c +++ b/dwl.c @@ -335,6 +335,7 @@ static void startdrag(struct wl_listener *listener, void *data); @@ -32,7 +33,7 @@ index 101a45f..3b08073 100644 static void togglefloating(const Arg *arg); static void togglefullscreen(const Arg *arg); static void toggletag(const Arg *arg); -@@ -2745,6 +2746,56 @@ tile(Monitor *m) +@@ -2745,6 +2746,58 @@ tile(Monitor *m) } } @@ -40,6 +41,8 @@ index 101a45f..3b08073 100644 +dwindle(Monitor *m) +{ + unsigned int i, n = 0; ++ int nx, ny, nw, nh; ++ int horizontal; + Client *c; + + /* count clients */ @@ -50,12 +53,12 @@ index 101a45f..3b08073 100644 + if (n == 0) + return; + -+ int nx = m->w.x; -+ int ny = m->w.y; -+ int nw = m->w.width; -+ int nh = m->w.height; ++ nx = m->w.x; ++ ny = m->w.y; ++ nw = m->w.width; ++ nh = m->w.height; + -+ int horizontal = 1; // toggle split direction ++ horizontal = 1; // toggle split direction + i = 0; + + wl_list_for_each(c, &clients, link) {