From 052a7fd7b01af1f812e9e762cbf17be350a8d7ed Mon Sep 17 00:00:00 2001 From: wochap Date: Fri, 8 Mar 2024 13:29:29 -0500 Subject: [PATCH] remove swapandfocusdir from stale folder export swapandfocusdir with `git format-patch` --- _STALE_PATCHES/swapandfocusdir.md | 12 ------------ swapandfocusdir/swapandfocusdir.patch | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 _STALE_PATCHES/swapandfocusdir.md diff --git a/_STALE_PATCHES/swapandfocusdir.md b/_STALE_PATCHES/swapandfocusdir.md deleted file mode 100644 index 42c04d0..0000000 --- a/_STALE_PATCHES/swapandfocusdir.md +++ /dev/null @@ -1,12 +0,0 @@ -### Description -Focus the window (floating or no) to the left, right, above, or below the current focused window. - -Swap the focused window with the window (no floating) to the left, right, above, or below. - -**NOTE:** this patch uses the same algorithm that River uses to select the window in the given direction. - -### Download -- [2023-11-24](https://github.com/djpohly/dwl/compare/main...wochap:swapandfocusdir.patch) - -### Authors -- [wochap](https://github.com/wochap) \ No newline at end of file diff --git a/swapandfocusdir/swapandfocusdir.patch b/swapandfocusdir/swapandfocusdir.patch index 57e1cef..7515f90 100644 --- a/swapandfocusdir/swapandfocusdir.patch +++ b/swapandfocusdir/swapandfocusdir.patch @@ -1,3 +1,18 @@ +From d224594e8f077ac49a1369670f6ff6a5d27ec75a Mon Sep 17 00:00:00 2001 +From: wochap +Date: Tue, 5 Mar 2024 23:50:01 -0500 +Subject: [PATCH] implement swap and focus direction functions + +you should expect the same behavior as in river wm, + +swap only works on tiling windows +focus works on tiling and floating windows +--- + Makefile | 2 +- + config.def.h | 8 +++ + dwl.c | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 172 insertions(+), 1 deletion(-) + diff --git a/Makefile b/Makefile index 6cde460..22f4372 100644 --- a/Makefile @@ -225,4 +240,6 @@ index ef27a1d..8d3540e 100644 /* We probably should change the name of this, it sounds like * will focus the topmost client of this mon, when actually will * only return that client */ +-- +2.42.0