Do not allow focus to drift from fullscreen client via focusstack() 67d76bdc
It generally doesn't make much sense to allow focusstack() to navigate
away from the selected fullscreen client, as you can't even see which
client you're selecting behind it.

I have had this up for a while on the wiki as a separate patch[0], but
it seems reasonable to avoid this behaviour in dwm mainline, since I'm
struggling to think of any reason to navigate away from a fullscreen
client other than a mistake.

0: https://dwm.suckless.org/patches/alwaysfullscreen/
Chris Down · 2020-07-02 20:18 1 file(s) · +1 −1
dwm.c +1 −1
835 835
{
836 836
	Client *c = NULL, *i;
837 837
838 -
	if (!selmon->sel)
838 +
	if (!selmon->sel || selmon->sel->isfullscreen)
839 839
		return;
840 840
	if (arg->i > 0) {
841 841
		for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);