mhdzli/dwm-single-tagset

error: ‘Monitor’ has no member named ‘clients’

Closed this issue · 8 comments

After applying the dwm-single-tagset-6.2.diff and attempting to rebuild dwm, I got the following error:

$ make install
dwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION="6.2" -DXINERAMA
LDFLAGS  = -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
CC       = cc
cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.2\" -DXINERAMA dwm.c
dwm.c: In function ‘drawbar’:
dwm.c:774:12: error: ‘Monitor’ has no member named ‘clients’
  774 |  for (c = m->clients; c; c = c->next) {
      |            ^~
make: *** [Makefile:18: dwm.o] Error 1

@shivangp76
Witch version of dwm did you use?

6.2

@shivangp76
Did you apply other patches before single-tagset?

Nope, I did not apply any other patches.

@shivangp76

Watch this video on my lbry channel.

@shivangp76
Apparently you have for (c = m->clients; c; c = c->next) { somewhere in your dwm.c if you apply this patch correctly it should change to for (c = m->cl->clients; c; c = c->next) {
Did you use git apply for that?

@shivangp76
Great. Happy to hear that and your welcome!