[pulseaudio-discuss] [PATCH] attach X11 properties to Screen, not Display

Lennart Poettering lennart at poettering.net
Mon Oct 26 12:52:32 PDT 2009


On Mon, 26.10.09 23:45, Leszek Koltunski (leszek at koltunski.pl) wrote:

> diff -Naur pulseaudio-0.9.19-old/src/pulsecore/x11prop.c
> pulseaudio-0.9.19-new/src/pulsecore/x11prop.c
> --- pulseaudio-0.9.19-old/src/pulsecore/x11prop.c    2009-10-26
> 23:07:57.000000000 +0800
> +++ pulseaudio-0.9.19-new/src/pulsecore/x11prop.c    2009-10-26
> 22:36:46.000000000 +0800
> @@ -32,12 +32,12 @@
> 
>  void pa_x11_set_prop(Display *d, const char *name, const char *data) {
>      Atom a = XInternAtom(d, name, False);
> -    XChangeProperty(d, RootWindow(d, 0), a, XA_STRING, 8, PropModeReplace,
> (const unsigned char*) data, (int) (strlen(data)+1));
> +    XChangeProperty(d, DefaultRootWindow(d), a, XA_STRING, 8,
> PropModeReplace, (const unsigned char*) data, (int) (strlen(data)+1));
>  }

Also, please disable line breaking in your mailer. Otherwise I cannot
apply your patches here.

Patches formatted with git format-patch are preferred btw,

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list