From 9a82c5a1d909480e7ad63195ef4d4bcd50da7b5b Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sat, 15 Sep 2012 09:50:02 +0200
Subject: [PATCH] xorg-server: prefer nvidia driver if available rather than
 nouveau.

---
 srcpkgs/xorg-server/patches/autoconfig-nvidia.patch | 2 +-
 srcpkgs/xorg-server/template                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/xorg-server/patches/autoconfig-nvidia.patch b/srcpkgs/xorg-server/patches/autoconfig-nvidia.patch
index be57812a8c..48a575d719 100644
--- a/srcpkgs/xorg-server/patches/autoconfig-nvidia.patch
+++ b/srcpkgs/xorg-server/patches/autoconfig-nvidia.patch
@@ -18,8 +18,8 @@
 +		    driverList[idx++] = "nouveau";
 +		    break;
 +		default:
-+		    driverList[idx++] = "nouveau";
 +		    driverList[idx++] = "nvidia";
++		    driverList[idx++] = "nouveau";
 +		    break;
 +		}
  #endif
diff --git a/srcpkgs/xorg-server/template b/srcpkgs/xorg-server/template
index 6fd4bc39e2..a0edc9a40f 100644
--- a/srcpkgs/xorg-server/template
+++ b/srcpkgs/xorg-server/template
@@ -1,7 +1,7 @@
 # Template build file for 'xorg-server'.
 pkgname=xorg-server
 version=1.12.4
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--enable-ipv6 --enable-xcsecurity --enable-record
 --enable-xnest --enable-xephyr --enable-composite --enable-xvfb