added antoszka's viewprev patch with some minor modifications, restored Client->tags as Bool *, however kept the static initialization of ntags and seltags (prevtags) - this seems to be the best compromise
# dwm versionVERSION=4.6# Customize below to fit your system# pathsPREFIX=/usr/localMANPREFIX=${PREFIX}/share/manX11INC=/usr/X11R6/includeX11LIB=/usr/X11R6/lib# includes and libsINCS=-I.-I/usr/include-I${X11INC}LIBS=-L/usr/lib-lc-L${X11LIB}-lX11# flagsCFLAGS=-Os${INCS}-DVERSION=\"${VERSION}\"LDFLAGS=-s${LIBS}#CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"#LDFLAGS = -g ${LIBS}# Solaris#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"#LDFLAGS = ${LIBS}#CFLAGS += -xtarget=ultra# compiler and linkerCC=cc