[PATCH] xrandr: Disable --clone / --extend support code.

Yann Droneaud ydroneaud at mandriva.com
Wed Nov 4 05:14:17 PST 2009


This was dead code after all.
The usage message regarding those options was already commented out.

This could be a fix for bug #12958

---
 xrandr.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/xrandr.c b/xrandr.c
index f7eba11..242ed06 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -210,9 +210,11 @@ reflection_name (Rotation rotation)
 }
 
 #if HAS_RANDR_1_2
+#if 0
 typedef enum _policy {
     clone, extend
 } policy_t;
+#endif
 
 typedef enum _relation {
     left_of, right_of, above, below, same_as,
@@ -2062,7 +2064,9 @@ main (int argc, char **argv)
     int		ret = 0;
 #if HAS_RANDR_1_2
     output_t	*output = NULL;
+#if 0
     policy_t	policy = clone;
+#endif
     Bool    	setit_1_2 = False;
     Bool    	query_1_2 = False;
     Bool	modeit = False;
@@ -2436,6 +2440,7 @@ main (int argc, char **argv)
 	    setit_1_2 = True;
 	    continue;
 	}
+#if 0
 	if (!strcmp ("--clone", argv[i])) {
 	    policy = clone;
 	    setit_1_2 = True;
@@ -2446,6 +2451,7 @@ main (int argc, char **argv)
 	    setit_1_2 = True;
 	    continue;
 	}
+#endif
 	if (!strcmp ("--auto", argv[i])) {
 	    if (output)
 	    {
-- 
1.6.0.2






More information about the xorg mailing list