aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rw-r--r--dwm-stickyfullscreen-6.8.diff6
2 files changed, 8 insertions, 6 deletions
diff --git a/README.md b/README.md
index 839f142..1b5f699 100644
--- a/README.md
+++ b/README.md
@@ -19,9 +19,11 @@ The patch uses the existing `lockfullscreen` option in `config.h`. Set it to
## Testing
-Applies and builds against dwm 6.8. Runtime tested under Xvfb: a fullscreen
-clear sent while unfocused is ignored, and the same clear while focused is
-honoured.
+Applies and builds against dwm 6.8. Runtime tested under Xvfb. A fullscreen
+clear sent while unfocused was ignored, fullscreen geometry returned on
+focus, and the same clear while focused was honoured. Setting
+`lockfullscreen` to 0 disabled the geometry restore and allowed the
+unfocused clear.
## Download
diff --git a/dwm-stickyfullscreen-6.8.diff b/dwm-stickyfullscreen-6.8.diff
index 5634b5a..01207ba 100644
--- a/dwm-stickyfullscreen-6.8.diff
+++ b/dwm-stickyfullscreen-6.8.diff
@@ -1,4 +1,4 @@
-From 94ac1398e3665214a5156f4ab6aad48f9fd6e265 Mon Sep 17 00:00:00 2001
+From e7782eaa0f7376cf607fe8efa958cd7d1bcf9a75 Mon Sep 17 00:00:00 2001
From: Daniel Guihot <daniel@guihot.net>
Date: Wed, 16 Sep 2026 05:07:55 +1000
Subject: [PATCH] stickyfullscreen: keep fullscreen until the user drops it
@@ -14,14 +14,14 @@ exits fullscreen.
1 file changed, 4 insertions(+)
diff --git a/dwm.c b/dwm.c
-index 53b393e..512a3ec 100644
+index 53b393e..82f3a0c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -802,6 +802,8 @@ focus(Client *c)
grabbuttons(c, 1);
XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel);
setfocus(c);
-+ if (c->isfullscreen)
++ if (lockfullscreen && c->isfullscreen)
+ resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
} else {
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);