remembertags: rebase onto 0.7

This commit is contained in:
45mg 2024-07-19 09:12:33 +00:00
parent 2e74dc1caf
commit fc33f98b97

View File

@ -1,4 +1,4 @@
From fea6eb3cfc84ede8403c89a3230f5c658a6c7bd1 Mon Sep 17 00:00:00 2001
From 9e6ea872743953feca6f70f28317dce7e78490d1 Mon Sep 17 00:00:00 2001
From: Micah N Gorrell <m@minego.net>
Date: Wed, 27 Mar 2024 13:05:09 -0600
Subject: [PATCH] remembertags
@ -9,10 +9,10 @@ Subject: [PATCH] remembertags
2 files changed, 52 insertions(+), 4 deletions(-)
diff --git a/config.def.h b/config.def.h
index 9009517..2312802 100644
index 22d2171..bf95080 100644
--- a/config.def.h
+++ b/config.def.h
@@ -105,10 +105,10 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
@@ -110,10 +110,10 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
#define MODKEY WLR_MODIFIER_ALT
#define TAGKEYS(KEY,SKEY,TAG) \
@ -28,13 +28,13 @@ index 9009517..2312802 100644
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
diff --git a/dwl.c b/dwl.c
index 5867b0c..31a81aa 100644
index 5bf995e..a0dab18 100644
--- a/dwl.c
+++ b/dwl.c
@@ -205,6 +205,11 @@ struct Monitor {
int gamma_lut_changed;
@@ -208,6 +208,11 @@ struct Monitor {
int nmaster;
char ltsymbol[16];
int asleep;
+ unsigned int createtag[2]; /* Create windows on the last tag directly selected, not all selected */
+ struct {
+ unsigned int tagset;
@ -43,15 +43,15 @@ index 5867b0c..31a81aa 100644
};
typedef struct {
@@ -308,6 +313,7 @@ static void pointerfocus(Client *c, struct wlr_surface *surface,
double sx, double sy, uint32_t time);
@@ -316,6 +321,7 @@ static void pointerfocus(Client *c, struct wlr_surface *surface,
static void printstatus(void);
static void powermgrsetmode(struct wl_listener *listener, void *data);
static void quit(const Arg *arg);
+static void remembertagsview(const Arg *arg);
static void rendermon(struct wl_listener *listener, void *data);
static void requestdecorationmode(struct wl_listener *listener, void *data);
static void requeststartdrag(struct wl_listener *listener, void *data);
@@ -1951,6 +1957,48 @@ quit(const Arg *arg)
@@ -2095,6 +2101,48 @@ quit(const Arg *arg)
wl_display_terminate(dpy);
}
@ -101,5 +101,5 @@ index 5867b0c..31a81aa 100644
rendermon(struct wl_listener *listener, void *data)
{
--
2.44.0
2.45.2