You are not logged in.
[solved]I am trying to appply the systray6.1 patch to dwm. The "patch" goes fine but when I make I get the below errors:
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION="6.1" -DXINERAMA
LDFLAGS = -s -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
CC = cc
CC drw.c
CC dwm.c
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 1
I haven't applied any other patches. Any idea what I am doing wrong? I can go into dwm.c and see the lines the error is refering to but I am not sure what the problem is.
Thanks
Last edited by derrickcope (2015-05-01 02:30:45)
Offline
Are you using version 6.1 of DWM?
AFAIK that version isn't in the repositories or ABS.
There are quite a few changes with the latest git pull so the systray6.1 patch may not be compatible with older versions.
Jin, Jîyan, Azadî
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code
As HoaS notes, the current head reintroduced XFT font support and that patch has obviously been updated.
Offline
I just got the latest one off of the repo at git.suckless.org/dwm. the page says 6.0 but my config.mk says version 6.1. I did try the 6.0 version but the patch had errors. I am a little confused. The other patches come back with errors too. I am using an unpatched version at the moment so I would think most patches should work.
What should I do?
Offline
Most of the patches labelled 6.{0,1} should apply against the dwm in the repos (ABS version).
The re-introduction of XFT only happened a fortnight ago so very few patches will have been updated for that.
Offline
[solved] once I got the 6.0 version and applied the 6.0 patch everything worked. Thank you for your help.
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline