aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2026-02-14 09:01:54 +0800
committerXiao Pan <xyz@flylightning.xyz>2026-02-14 09:01:54 +0800
commit835e199b9d3f152a53745138b6060113c5322fab (patch)
treeaecc0e3ebc9c24e85bcecb41d8e821a8cc8bb55d
parent4891c001fb8c70bb94203503d8418c49aa1dbfd5 (diff)
parent397d618f1cfbed398ef05d0c9d1e5dbcdb8144e7 (diff)
Merge branch 'master' into flyfly
-rw-r--r--config.mk2
-rw-r--r--dwm.c8
2 files changed, 4 insertions, 6 deletions
diff --git a/config.mk b/config.mk
index 6e875f1..982dc21 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
# dwm version
-VERSION = 6.7
+VERSION = 6.8
# Customize below to fit your system
diff --git a/dwm.c b/dwm.c
index 844675a..aacbdf5 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1471,12 +1471,10 @@ sendevent(Client *c, Atom proto)
void
setfocus(Client *c)
{
- if (!c->neverfocus) {
+ if (!c->neverfocus)
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
- XChangeProperty(dpy, root, netatom[NetActiveWindow],
- XA_WINDOW, 32, PropModeReplace,
- (unsigned char *) &(c->win), 1);
- }
+ XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
+ PropModeReplace, (unsigned char *)&c->win, 1);
sendevent(c, wmatom[WMTakeFocus]);
}