public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Patch: -multiplemonitors is default, -nomultiplemnoitors added
@ 2004-01-14 15:11 Øyvind Harboe
  2004-01-15 17:45 ` Harold L Hunt II
  0 siblings, 1 reply; 3+ messages in thread
From: Øyvind Harboe @ 2004-01-14 15:11 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]

Ref. earlier post, here is the patch.

http://sources.redhat.com/ml/cygwin-xfree/2004-01/msg00160.html

I compiled&tested; works on my rocket.


Øyvind


[-- Attachment #2: multi-monitor.diff --]
[-- Type: text/plain, Size: 1549 bytes --]

? multi-monitor.diff
Index: winprocarg.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xwin/Attic/winprocarg.c,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 winprocarg.c
--- winprocarg.c	10 Jan 2004 07:50:57 -0000	1.1.2.3
+++ winprocarg.c	14 Jan 2004 13:57:15 -0000
@@ -107,7 +107,7 @@ winInitializeDefaultScreens (void)
       g_ScreenInfo[i].fRootless = FALSE;
       g_ScreenInfo[i].fPseudoRootless = FALSE;
       g_ScreenInfo[i].fMultiWindow = FALSE;
-      g_ScreenInfo[i].fMultipleMonitors = FALSE;
+      g_ScreenInfo[i].fMultipleMonitors = TRUE;
       g_ScreenInfo[i].fLessPointer = FALSE;
       g_ScreenInfo[i].fScrollbars = FALSE;
       g_ScreenInfo[i].fNoTrayIcon = FALSE;
@@ -526,6 +526,34 @@ ddxProcessArgument (int argc, char *argv
     }
 
   /*
+   * Look for the '-nomultiplemonitors' argument
+   */
+  if (IS_OPTION ("-nomultiplemonitors")
+      || IS_OPTION ("-nomultimonitors"))
+    {
+      /* Is this parameter attached to a screen or is it global? */
+      if (-1 == g_iLastScreen)
+	{
+	  int			j;
+
+	  /* Parameter is for all screens */
+	  for (j = 0; j < MAXSCREENS; j++)
+	    {
+	      g_ScreenInfo[j].fMultipleMonitors = FALSE;
+	    }
+	}
+      else
+	{
+	  /* Parameter is for a single screen */
+	  g_ScreenInfo[g_iLastScreen].fMultipleMonitors = FALSE;
+	}
+
+      /* Indicate that we have processed this argument */
+      return 1;
+    }
+
+
+  /*
    * Look for the '-scrollbars' argument
    */
   if (IS_OPTION ("-scrollbars"))

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-16  5:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-14 15:11 Patch: -multiplemonitors is default, -nomultiplemnoitors added Øyvind Harboe
2004-01-15 17:45 ` Harold L Hunt II
2004-01-16  5:40   ` Earle F. Philhower III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).