mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-07 11:44:51 +00:00
push: rebase against 9c05b9622c7aa3a0874c49231249cf1859e2d031
This commit is contained in:
parent
affb90be44
commit
2ce469b149
@ -3,7 +3,7 @@ Adds functions `pushup` and `pushdown` to move windows within the tiling order.
|
||||
|
||||
### Download
|
||||
- [git branch](https://codeberg.org/sevz/dwl/src/branch/push)
|
||||
- [2024-06-13](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/push/push.patch)
|
||||
- [2024-09-03](/dwl/dwl-patches/raw/branch/main/patches/push/push.patch)
|
||||
- [push-0.7.patch](/dwl/dwl-patches/raw/branch/main/patches/push/push-0.7.patch)
|
||||
|
||||
### Authors
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 74ba3dcaa28fd7eb1fca48851d640ec322093de2 Mon Sep 17 00:00:00 2001
|
||||
From 23f9113fd746081a6c32d9c6367f19eabe9a91b3 Mon Sep 17 00:00:00 2001
|
||||
From: "Devin J. Pohly" <djpohly@gmail.com>
|
||||
Date: Thu, 4 Mar 2021 00:45:50 -0600
|
||||
Subject: [PATCH] port dwm "push" patch to dwl
|
||||
@ -8,33 +8,32 @@ Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
|
||||
---
|
||||
Makefile | 3 +--
|
||||
Makefile | 2 +-
|
||||
dwl.c | 2 ++
|
||||
push.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
push.h | 4 ++++
|
||||
4 files changed, 70 insertions(+), 2 deletions(-)
|
||||
4 files changed, 70 insertions(+), 1 deletion(-)
|
||||
create mode 100644 push.c
|
||||
create mode 100644 push.h
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index e3e64262..447191e8 100644
|
||||
index 8db7409c..e742ed3f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -16,8 +16,7 @@ LDLIBS = `$(PKG_CONFIG) --libs $(PKGS)` $(LIBS)
|
||||
@@ -19,7 +19,7 @@ LDLIBS = `$(PKG_CONFIG) --libs $(PKGS)` $(WLR_LIBS) -lm $(LIBS)
|
||||
all: dwl
|
||||
dwl: dwl.o util.o
|
||||
$(CC) dwl.o util.o $(DWLCFLAGS) $(LDFLAGS) $(LDLIBS) -o $@
|
||||
-dwl.o: dwl.c client.h config.h config.mk cursor-shape-v1-protocol.h pointer-constraints-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.h xdg-shell-protocol.h
|
||||
-util.o: util.c util.h
|
||||
+dwl.o: dwl.c push.h client.h config.h config.mk cursor-shape-v1-protocol.h pointer-constraints-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.h xdg-shell-protocol.h
|
||||
|
||||
# wayland-scanner is a tool which generates C headers and rigging for Wayland
|
||||
# protocols, which are specified in XML. wlroots requires you to rig these up
|
||||
-dwl.o: dwl.c client.h config.h config.mk cursor-shape-v1-protocol.h \
|
||||
+dwl.o: dwl.c client.h config.h config.mk push.h cursor-shape-v1-protocol.h \
|
||||
pointer-constraints-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.h \
|
||||
wlr-output-power-management-unstable-v1-protocol.h xdg-shell-protocol.h
|
||||
util.o: util.c util.h
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index 6f041a0d..60b65794 100644
|
||||
index 9021e442..f9e44f33 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -421,7 +421,9 @@ static xcb_atom_t netatom[NetLast];
|
||||
@@ -425,7 +425,9 @@ static xcb_atom_t netatom[NetLast];
|
||||
#endif
|
||||
|
||||
/* configuration, allows nested code to access above variables */
|
||||
@ -124,5 +123,5 @@ index 00000000..59c0f80e
|
||||
+static void pushdown(const Arg *arg);
|
||||
+static void pushup(const Arg *arg);
|
||||
--
|
||||
2.45.2
|
||||
2.46.0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user