From 6837f1e46589fa2cc61bd167a8111fb36f118538 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Apr 2007 20:16:06 +0000 Subject: [PATCH] * Updated the tfp-server-extension patch for 0.5. svn path=/nixpkgs/trunk/; revision=8596 --- .../window-managers/compiz/default.nix | 13 +++--- .../compiz/tfp-server-extension.patch | 44 +++++++++++++++++++ 2 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 pkgs/applications/window-managers/compiz/tfp-server-extension.patch diff --git a/pkgs/applications/window-managers/compiz/default.nix b/pkgs/applications/window-managers/compiz/default.nix index b7005c2e62e4..3ba52518d38e 100644 --- a/pkgs/applications/window-managers/compiz/default.nix +++ b/pkgs/applications/window-managers/compiz/default.nix @@ -4,15 +4,14 @@ }: stdenv.mkDerivation { - name = "compiz-0.3.6"; + name = "compiz-0.5.0"; src = fetchurl { - url = http://xorg.freedesktop.org/archive/individual/app/compiz-0.3.6.tar.bz2; - sha256 = "0z7cprg510x1sjzsj8h02l1q5h7qvhcn7z94b7a48pxv124z7qpg"; - }; - patches = fetchurl { - url = http://gandalfn.club.fr/ubuntu/compiz-patch/02-tfp-server-extension.patch; - sha256 = "1hi53ajypmgsyfz7cziccdk9f8mn3pfl255yjzl0v15nv5kacmiq"; + url = http://xorg.freedesktop.org/archive/individual/app/compiz-0.5.0.tar.gz; + sha256 = "1fac5fc37b218k34lpxqlhs7srqxm7jly0hfncs3ghmjmxdlj03y"; }; + patches = [ + ./tfp-server-extension.patch + ]; buildInputs = [ pkgconfig libXrender xextproto gtk libwnck GConf ]; diff --git a/pkgs/applications/window-managers/compiz/tfp-server-extension.patch b/pkgs/applications/window-managers/compiz/tfp-server-extension.patch new file mode 100644 index 000000000000..51910b5d0574 --- /dev/null +++ b/pkgs/applications/window-managers/compiz/tfp-server-extension.patch @@ -0,0 +1,44 @@ +diff -rc compiz-0.5.0-orig/src/screen.c compiz-0.5.0/src/screen.c +*** compiz-0.5.0-orig/src/screen.c 2007-04-02 20:15:30.000000000 +0200 +--- compiz-0.5.0/src/screen.c 2007-04-18 21:52:43.000000000 +0200 +*************** +*** 1533,1539 **** + Window *children; + unsigned int nchildren; + int defaultDepth, nvisinfo, nElements, value, i; +! const char *glxExtensions, *glExtensions; + XSetWindowAttributes attrib; + GLfloat globalAmbient[] = { 0.1f, 0.1f, 0.1f, 0.1f }; + GLfloat ambientLight[] = { 0.0f, 0.0f, 0.0f, 0.0f }; +--- 1533,1540 ---- + Window *children; + unsigned int nchildren; + int defaultDepth, nvisinfo, nElements, value, i; +! const char *glxExtensions = NULL, *glExtensions; +! const char *glxServerExtensions = NULL; + XSetWindowAttributes attrib; + GLfloat globalAmbient[] = { 0.1f, 0.1f, 0.1f, 0.1f }; + GLfloat ambientLight[] = { 0.0f, 0.0f, 0.0f, 0.0f }; +*************** +*** 1793,1800 **** + if (glXIsDirect (dpy, s->ctx) == indirectRendering) + i++; + + glxExtensions = glXQueryExtensionsString (dpy, screenNum); +! if (!strstr (glxExtensions, "GLX_EXT_texture_from_pixmap")) + { + if (i > 0) + { +--- 1794,1805 ---- + if (glXIsDirect (dpy, s->ctx) == indirectRendering) + i++; + ++ glxServerExtensions = glXQueryServerString(dpy, ++ screenNum, GLX_EXTENSIONS ); + glxExtensions = glXQueryExtensionsString (dpy, screenNum); +! +! if (!strstr (indirectRendering ? glxServerExtensions : glxExtensions, +! "GLX_EXT_texture_from_pixmap")) + { + if (i > 0) + {