DWM patching
I didn't get a response in the suckless subreddit so maybe I can find some help here. I am having trouble patching DWM. I wget 'd the .diff file from the suckless website and then I CD to the /DWM and $ patch -p1 < /path/to/.diff but I got errors. Is my method correct? Is it a problem with the .diff?
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 3456ei
10 comments
Which .diff file?
Give a full path, please.
patch -p1 /path/to/.diff # Code tags are easy to use.The patch is the systray.diff from Tue suckless website.
This is the error I am getting. Do I need to add some other patches first?
dwm.c: In function‘ clientmessage’: dwm.c:589:26: error: incompatible types when assigning to type ‘long unsigned int’ from type ‘XftColor’ swa.background_pixel = scheme[SchemeNorm].bg->rgb;dwm.c: In function ‘updatesystray’: dwm.c:2221:18: error: incompatible type for argument 9 of ‘XCreateSimpleWindow’ systray->win = XCreateSimpleWindow(dpy, root, x, m->by, w, bh, 0, 0, scheme[SchemeSel].bg->rgb);In file included from dwm.c:36:0: /usr/include/X11/Xlib.h:1621:15: note: expected ‘long unsigned int’ but argument is of type ‘XftColor’ extern Window XCreateSimpleWindow(dwm.c:2224:24: error: incompatible types when assigning to type ‘long unsigned int’ from type ‘XftColor’ wa.background_pixel = scheme[SchemeNorm].bg->rgb;dwm.c:2244:24: error: incompatible types when assigning to type ‘long unsigned int’ from type ‘XftColor’ wa.background_pixel = scheme[SchemeNorm].bg->rgb;dwm.c:2263:2: error: incompatible type for argument 3 of ‘XSetForeground’ XSetForeground(dpy, drw->gc, scheme[SchemeNorm].bg->rgb)In file included from dwm.c:36:0: /usr/include/X11/Xlib.h:3227:12: note: expected ‘long unsigned int’ but argument is of type ‘XftColor’ extern int XSetForeground(Makefile:18: recipe for target 'dwm.o' failed make: *** [dwm.o] Error 1Please use code tags when posting code snippets or console output. Yes, it looks like the patch is somehow wrong/outdated, or missing some prerequisite patch, or some library is outdated/indated (is that a word?) or some similar issue.
Sorry, I will clean that up. I am confused. I downloaded the latest version of dwm from the website but the patch I was trying to use said for 6.1. Is there a 6.1? I don't see any mention of it on the website.