[comp.windows.x] X11 fix #45, server/ddx duo, dead mouse syndrome

RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (11/05/87)

    Date: Mon, 26 Oct 87 16:37:33 EST
    From: Ralph R. Swick <swick@ATHENA.MIT.EDU>

    DESCRIPTION:

	    VSII: after starting up X, the cursor tracks the mouse but never
	    changes on window crossings and input always goes to one window
	    (if any).
    
	    RT: after starting up X, the cursor does not track the mouse but
	    will jump to a new position whenever a button is pressed.  Cursor
	    never changes, input goes to single window.

    FIX:
	2 files: server/ddx/qvss/qvss_io.c, server/ddx/ibm/apa16/apa16io.c

*** /tmp/,RCSt1002365	Thu Nov  5 10:09:43 1987
--- server/ddx/qvss/qvss_io.c	Mon Oct 26 16:08:41 1987
***************
*** 21,27 ****
  SOFTWARE.
  
  ******************************************************************/
! /* $Header: qvss_io.c,v 1.68 87/09/10 16:23:01 swick Exp $ */
  
  #include <stdio.h>
  #include <sys/types.h>
--- 21,27 ----
  SOFTWARE.
  
  ******************************************************************/
! /* $Header: qvss_io.c,v 1.69 87/10/26 16:08:31 swick Exp $ */
  
  #include <stdio.h>
  #include <sys/types.h>
***************
*** 143,148 ****
--- 143,149 ----
  	}
      mouse = (vsCursor *) &qvInfo->mouse;
      mbox = (vsBox *) &qvInfo->mbox;
+     mbox->bottom = 0; /* trash pointer non-interest box 'cause driver won't */
  	/*
  	   the following hack is really pretending a part of one record
  	   is really a record of another type!


*** /tmp/,RCSt1002375	Thu Nov  5 10:13:57 1987
--- server/ddx/ibm/apa16/apa16io.c	Mon Oct 26 16:22:30 1987
***************
*** 44,54 ****
  
  ******************************************************************/
  
! /* $Header: apa16io.c,v 5.6 87/09/13 03:18:24 erik Exp $ */
! /* $Source: /u1/X11/server/ddx/ibm/apa16/RCS/apa16io.c,v $ */
  
  #ifndef lint
! static char *rcsid = "$Header: apa16io.c,v 5.6 87/09/13 03:18:24 erik Exp $";
  #endif
  
  #include <stdio.h>
--- 44,54 ----
  
  ******************************************************************/
  
! /* $Header: apa16io.c,v 5.7 87/10/26 16:21:42 swick Exp $ */
! /* $Source: /site/X11/server/ddx/ibm/apa16/RCS/apa16io.c,v $ */
  
  #ifndef lint
! static char *rcsid = "$Header: apa16io.c,v 5.7 87/10/26 16:21:42 swick Exp $";
  #endif
  
  #include <stdio.h>
***************
*** 133,138 ****
--- 133,139 ----
  	ioctl(rtScreenFD,EISETD,&emulator);
  	ioctl(rtScreenFD,QIOCADDR,&rtXaddr);
  	rtQueue= (XEventQueue *)(&rtXaddr->ibuff);
+ 	rtXaddr->mbox.bottom = 0; /* trash non-interest box */
  
  	if (open ("/dev/bus", O_RDONLY|O_NDELAY) < 0) {
  	    ErrorF("Unable to open /dev/bus\n");