chore: added reversed window creation 7de9e686
Steve Simkins · 2025-11-10 16:46 1 file(s) · +5 −2
dwm.c +5 −2
406 406
void
407 407
attach(Client *c)
408 408
{
409 -
	c->next = c->mon->clients;
410 -
	c->mon->clients = c;
409 +
	Client **tc;
410 +
411 +
	for (tc = &c->mon->clients; *tc; tc = &(*tc)->next);
412 +
	*tc = c;
413 +
	c->next = NULL;
411 414
}
412 415
413 416
void