summaryrefslogtreecommitdiff
path: root/recipes/xserver-common/xserver-common-1.30/0023-Xserver-provide-screen-argument-only-for-non-X.org-s.patch
blob: e80cbac71e7fed92ac2974c163a11b0926fb14f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 0ea66d0827131952dc1069f1ea3cb317b831df55 Mon Sep 17 00:00:00 2001
From: Marcin Juszkiewicz <hrw@koansoftware.com>
Date: Fri, 28 Aug 2009 18:47:55 +0200
Subject: [PATCH 1/1] Xserver: provide -screen argument only for non-X.org servers

---
 X11/Xserver |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/X11/Xserver b/X11/Xserver
index 3d93a0a..583cd0d 100755
--- a/X11/Xserver
+++ b/X11/Xserver
@@ -179,7 +179,9 @@ else
 			# It is a device we do not know about, in which case we force
 			# kdrive to use the current framebuffer geometry -- otherwise
 			# it will default to trying to achieve 1024x768
-			ARGS="$ARGS -screen ${SCREEN_SIZE}"
+			if [ "$XSERVER" != "Xorg" ] ; then
+			    ARGS="$ARGS -screen ${SCREEN_SIZE}"
+			fi
 		    fi
     esac
 fi
-- 
1.6.3.3