update controlled_fullscreen to dwl 0.8

This commit is contained in:
André Desgualdo Pereira
2026-03-14 17:44:04 -03:00
parent 16ae2a3a87
commit 4774631436
3 changed files with 150 additions and 17 deletions
@@ -1,17 +1,17 @@
From e0cecc228d436425c0d921a1eec5e0370d24613d Mon Sep 17 00:00:00 2001
From 234dc2774b23d21c647c6967b1dd38e61165fabf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Desgualdo=20Pereira?= <desgua@gmail.com>
Date: Thu, 13 Nov 2025 09:09:22 -0300
Subject: [PATCH] controlled fullscreen fix
Date: Sat, 14 Mar 2026 17:20:21 -0300
Subject: [PATCH] update to dwl 0.8
---
dwl.c | 32 ++++++++++++--------------------
1 file changed, 12 insertions(+), 20 deletions(-)
diff --git a/dwl.c b/dwl.c
index 12f441e..4f124eb 100644
index 101a45f..0ec8db6 100644
--- a/dwl.c
+++ b/dwl.c
@@ -518,9 +518,6 @@ arrange(Monitor *m)
@@ -519,9 +519,6 @@ arrange(Monitor *m)
}
}
@@ -21,7 +21,7 @@ index 12f441e..4f124eb 100644
strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, LENGTH(m->ltsymbol));
/* We move all clients (except fullscreen and unmanaged) to LyrTile while
@@ -878,7 +875,7 @@ commitnotify(struct wl_listener *listener, void *data)
@@ -879,7 +876,7 @@ commitnotify(struct wl_listener *listener, void *data)
return;
}
@@ -30,7 +30,7 @@ index 12f441e..4f124eb 100644
/* mark a pending resize as completed */
if (c->resize && c->resize <= c->surface.xdg->current.configure_serial)
@@ -1490,7 +1487,7 @@ focusstack(const Arg *arg)
@@ -1491,7 +1488,7 @@ focusstack(const Arg *arg)
{
/* Focus the next or previous client (in tiling order) on selmon */
Client *c, *sel = focustop(selmon);
@@ -39,7 +39,7 @@ index 12f441e..4f124eb 100644
return;
if (arg->i > 0) {
wl_list_for_each(c, &sel->link, link) {
@@ -1826,7 +1823,7 @@ monocle(Monitor *m)
@@ -1828,7 +1825,7 @@ monocle(Monitor *m)
int n = 0;
wl_list_for_each(c, &clients, link) {
@@ -48,7 +48,7 @@ index 12f441e..4f124eb 100644
continue;
resize(c, m->w, 0);
n++;
@@ -1957,7 +1954,7 @@ moveresize(const Arg *arg)
@@ -1959,7 +1956,7 @@ moveresize(const Arg *arg)
if (cursor_mode != CurNormal && cursor_mode != CurPressed)
return;
xytonode(cursor->x, cursor->y, NULL, &grabc, NULL, NULL, NULL);
@@ -57,7 +57,7 @@ index 12f441e..4f124eb 100644
return;
/* Float the window and tell motionnotify to grab it */
@@ -2332,14 +2329,12 @@ setcursorshape(struct wl_listener *listener, void *data)
@@ -2334,14 +2331,12 @@ setcursorshape(struct wl_listener *listener, void *data)
void
setfloating(Client *c, int floating)
{
@@ -74,7 +74,7 @@ index 12f441e..4f124eb 100644
arrange(c->mon);
printstatus();
}
@@ -2352,12 +2347,12 @@ setfullscreen(Client *c, int fullscreen)
@@ -2354,12 +2349,12 @@ setfullscreen(Client *c, int fullscreen)
return;
c->bw = fullscreen ? 0 : borderpx;
client_set_fullscreen(c, fullscreen);
@@ -90,7 +90,7 @@ index 12f441e..4f124eb 100644
} else {
/* restore previous size instead of arrange for floating windows since
* client positions are set by the user and cannot be recalculated */
@@ -2716,7 +2711,7 @@ tile(Monitor *m)
@@ -2719,7 +2714,7 @@ tile(Monitor *m)
Client *c;
wl_list_for_each(c, &clients, link)
@@ -99,7 +99,7 @@ index 12f441e..4f124eb 100644
n++;
if (n == 0)
return;
@@ -2727,7 +2722,7 @@ tile(Monitor *m)
@@ -2730,7 +2725,7 @@ tile(Monitor *m)
mw = m->w.width;
i = my = ty = 0;
wl_list_for_each(c, &clients, link) {
@@ -108,7 +108,7 @@ index 12f441e..4f124eb 100644
continue;
if (i < m->nmaster) {
resize(c, (struct wlr_box){.x = m->w.x, .y = m->w.y + my, .width = mw,
@@ -2747,7 +2742,7 @@ togglefloating(const Arg *arg)
@@ -2750,7 +2745,7 @@ togglefloating(const Arg *arg)
{
Client *sel = focustop(selmon);
/* return if fullscreen */
@@ -117,7 +117,7 @@ index 12f441e..4f124eb 100644
setfloating(sel, !sel->isfloating);
}
@@ -2902,9 +2897,6 @@ updatemons(struct wl_listener *listener, void *data)
@@ -2905,9 +2900,6 @@ updatemons(struct wl_listener *listener, void *data)
arrangelayers(m);
/* Don't move clients to the left output when plugging monitors */
arrange(m);