From 7dd8eef128223ddb9614e18406f9234fa2fa4f73 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Mon, 16 Jun 2025 23:37:45 +0200 Subject: [PATCH] attachtop: fix floating window edge case Issue: #533 --- patches/attachtop/README.md | 2 +- patches/attachtop/attachtop.patch | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/patches/attachtop/README.md b/patches/attachtop/README.md index 3762f1a..0241b7d 100644 --- a/patches/attachtop/README.md +++ b/patches/attachtop/README.md @@ -7,7 +7,7 @@ Behavior feels very intuitive as it doesn't disrupt existing masters no matter t ### Download - [git branch](https://codeberg.org/nikitaivanov/dwl/src/branch/attachtop) -- [2024-04-23](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/attachtop/attachtop.patch) +- [2025-06-16](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/attachtop/attachtop.patch) ### Authors - [Nikita Ivanov](https://codeberg.org/nikitaivanov) diff --git a/patches/attachtop/attachtop.patch b/patches/attachtop/attachtop.patch index 78a77ca..d447246 100644 --- a/patches/attachtop/attachtop.patch +++ b/patches/attachtop/attachtop.patch @@ -1,4 +1,4 @@ -From 42a66d6e06c38e913766ce625f049fdbc3dd0d12 Mon Sep 17 00:00:00 2001 +From 29e6a4bef02c473cc5bd04804fe508bda265077d Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Sun, 7 Apr 2024 21:10:17 +0200 Subject: [PATCH] New client are attached on top of the stack @@ -8,7 +8,7 @@ Subject: [PATCH] New client are attached on top of the stack 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c -index bf763df..c0a3d74 100644 +index bf763df..02e3d07 100644 --- a/dwl.c +++ b/dwl.c @@ -1605,7 +1605,18 @@ mapnotify(struct wl_listener *listener, void *data) @@ -18,7 +18,7 @@ index bf763df..c0a3d74 100644 - wl_list_insert(&clients, &c->link); + i = 0; + wl_list_for_each(w, &clients, link) { -+ if (!VISIBLEON(w, selmon) || c->isfloating) ++ if (!VISIBLEON(w, selmon) || w->isfloating) + continue; + p = w; + if (++i >= selmon->nmaster) @@ -32,5 +32,5 @@ index bf763df..c0a3d74 100644 /* Set initial monitor, tags, floating status, and focus: -- -2.44.0 +2.49.0