You are not logged in.

#1 2015-04-30 05:32:54

derrickcope
Member
Registered: 2015-04-30
Posts: 15

[solved]DWM apply systray patch

[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

#2 2015-04-30 06:47:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved]DWM apply systray patch

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

#3 2015-04-30 07:39:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]DWM apply systray patch

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-04-30 08:58:17

derrickcope
Member
Registered: 2015-04-30
Posts: 15

Re: [solved]DWM apply systray patch

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

#5 2015-04-30 09:07:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]DWM apply systray patch

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2015-04-30 23:57:48

derrickcope
Member
Registered: 2015-04-30
Posts: 15

Re: [solved]DWM apply systray patch

[solved] once I got the 6.0 version and applied the 6.0 patch everything worked. Thank you for your help.

Offline

#7 2015-05-01 00:01:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]DWM apply systray patch

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB