<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dwm/dwm.c, branch main</title>
<subtitle>My fork of suckless' dwm window manager.
</subtitle>
<id>https://git.2137697.xyz/dwm/atom?h=main</id>
<link rel='self' href='https://git.2137697.xyz/dwm/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/'/>
<updated>2026-11-15T17:07:17Z</updated>
<entry>
<title>debloat + important info about Mod's</title>
<updated>2026-11-15T17:07:17Z</updated>
<author>
<name>salmonik</name>
<email>salmon@2137697.xyz</email>
</author>
<published>2026-11-15T17:07:17Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=d6e6771eb6726046b54d30f604b65ab941d90676'/>
<id>urn:sha1:d6e6771eb6726046b54d30f604b65ab941d90676</id>
<content type='text'>
</content>
</entry>
<entry>
<title>setlayout: NUL terminate ltsymbol</title>
<updated>2026-10-28T18:05:10Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-28T18:05:10Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=f08763b74e32d83dd5d706ce2090b235ed518a89'/>
<id>urn:sha1:f08763b74e32d83dd5d706ce2090b235ed518a89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>support spawning dmenu with more than 10 monitors</title>
<updated>2026-10-16T11:26:00Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-13T13:00:21Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=bca7cf2bd91760855408326411a659ff72895860'/>
<id>urn:sha1:bca7cf2bd91760855408326411a659ff72895860</id>
<content type='text'>
</content>
</entry>
<entry>
<title>print an error if fork failed (resource / process limits)</title>
<updated>2026-10-16T11:26:00Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-13T12:42:56Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=1d07715ebdf41f293b8de0c027932e71d8360a36'/>
<id>urn:sha1:1d07715ebdf41f293b8de0c027932e71d8360a36</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check return value of XGetModifierMapping</title>
<updated>2026-10-16T11:26:00Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-13T12:39:44Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=ebfe6719885e1b567d59828be3dc27cb5a0d4adf'/>
<id>urn:sha1:ebfe6719885e1b567d59828be3dc27cb5a0d4adf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix a possible memory leak if a list is empty for XmbTextPropertyToTextList</title>
<updated>2026-10-16T11:26:00Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-13T12:37:57Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=d587dd65a4d55c810438336170301b67e69dcade'/>
<id>urn:sha1:d587dd65a4d55c810438336170301b67e69dcade</id>
<content type='text'>
</content>
</entry>
<entry>
<title>properly NUL terminate ltsymbol</title>
<updated>2026-10-16T11:26:00Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-13T12:34:59Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=ce41d3479103fe818466cde9394cce9ac314f519'/>
<id>urn:sha1:ce41d3479103fe818466cde9394cce9ac314f519</id>
<content type='text'>
Although this is config error in config.h if the symbol is too long.
Make sure it is correct.

Note that the symbol would then get truncated.
</content>
</entry>
<entry>
<title>ignore malformed ConfigureNotify with width or height &lt;= 0</title>
<updated>2026-10-16T11:25:55Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-13T12:30:47Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=3fdf0241fcd1b7677a034c0c8f213587e5e706e7'/>
<id>urn:sha1:3fdf0241fcd1b7677a034c0c8f213587e5e706e7</id>
<content type='text'>
This could crash dwm.

cc repro.c -o repro -lX11; ./repro

int
main(void)
{
	Display *d;
	int screen;
	Window root;

	d = XOpenDisplay(NULL);
	if (!d) {
		fprintf(stderr, "XOpenDisplay failed\n");
		return 1;
	}
	screen = DefaultScreen(d);
	root = RootWindow(d, screen);

	XConfigureEvent ce = {0};
	ce.type = ConfigureNotify;
	ce.display = d;
	ce.event = root;
	ce.window = root;
	ce.width = 0;
	ce.height = 0;
	XSendEvent(d, root, False, StructureNotifyMask, (XEvent *)&amp;ce);
	XFlush(d);

	XCloseDisplay(d);

	return 0;
}
</content>
</entry>
<entry>
<title>check and restrict size hint values</title>
<updated>2026-10-16T11:23:34Z</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2026-10-13T12:28:33Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=7283c8c0ac9db8b38bb280576668256023d82fb4'/>
<id>urn:sha1:7283c8c0ac9db8b38bb280576668256023d82fb4</id>
<content type='text'>
Could not reproduce a crash, but may mess up window geometry, etc.

Test program below to give an idea:

cc repro.c -o repro -lX11; ./repro

int
main(void)
{
	Display *d;
	int screen;
	Window root;
	Window win;

	d = XOpenDisplay(NULL);
	if (!d) {
		fprintf(stderr, "XOpenDisplay failed\n");
		return 1;
	}
	screen = DefaultScreen(d);
	root = RootWindow(d, screen);

	win = XCreateSimpleWindow(d, root, 0, 0, 100, 100, 0, 0, 0);
	if (!win) {
		fprintf(stderr, "XCreateSimpleWindow failed\n");
		XCloseDisplay(d);
		return 1;
	}

	//XMapWindow(d, win);
	XMapRaised(d, win);

	XSizeHints h = {0};
	h.flags = PResizeInc | PBaseSize | PMinSize;
	h.width_inc = -1;
	h.height_inc = -1;
	h.base_width = INT_MIN + 500; /* window is 500px wide */
	h.base_height = 0;

	h.min_width = ~0L;
	h.min_height = ~0L;

	XSetWMNormalHints(d, win, &amp;h);

	sleep(3);

	//XDestroyWindow(d, win);

	XCloseDisplay(d);

	return 0;
}
</content>
</entry>
<entry>
<title>buttonpress: fix status text click area mismatch</title>
<updated>2026-03-13T17:27:18Z</updated>
<author>
<name>Ruben Gonzalez</name>
<email>gonzaru@sdf.org</email>
</author>
<published>2026-03-13T13:23:24Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/dwm/commit/?id=44dbc6809d05b8f2addc483f882e670db0b6b8e9'/>
<id>urn:sha1:44dbc6809d05b8f2addc483f882e670db0b6b8e9</id>
<content type='text'>
The status bar in drawbar() calculates the text width as TEXTW(stext)
- lrpad + 2. However, the click detection in buttonpress() used
TEXTW(stext) without adjusting for that padding.

This created an "extra" clickable area of some pixels to the left of
the status text that would incorrectly trigger ClkStatusText actions
instead of ClkWinTitle.

Steps to reproduce:
1. Set a status text: xsetroot -name "HELLO"
2. Move the mouse to the empty space with some pixels close to the
left of the word "HELLO" but in the title area.
3. Middle-click (or any binding for ClkStatusText).
4. You can see that the status bar action is triggered (default a
terminal spawns), even though you clicked in the window title area.

This fix ensures that the clickable area matches the visual text.
</content>
</entry>
</feed>
