*BSD News Article 3855


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!uunet!wupost!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: Motif on X386???
Message-ID: <1992Aug19.023726.27289@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <1992Aug17.140857.3882@lgc.com> <1992Aug18.015024.8369@fcom.cc.utah.edu> <1992Aug18.174802.9845@BitBlocks.com>
Date: Wed, 19 Aug 92 02:37:26 GMT
Lines: 41

In article <1992Aug18.174802.9845@BitBlocks.com> bvs@BitBlocks.com (Bakul Shah) writes:
>terry@cs.weber.edu (A Wizard of Earth C) writes:
>
>>I also saw problems with menus not coming active unless you let go of the
>>button popping up the menu, then quickly pressed it again (not in the menu
>>area) to get the menu selection bar to follow the mouse.
>
>Make sure you are using the latest com.c driver (with select()
>bug fixed).  But even then there is some problem with the mouse
>code in X386 as the very first button press is not seen until
>after you either release the button or move the mouse a bit.
>
>If you wish to track this problem down, check out file
>$X11R5/mit/server/ddx/x386/x386Io.c.  Routine x386MseEvents()
>seems to be the culprit.

Naw.  It recognized the mouse event; Motif, due to the register pop-order bug,
just didn't get the correct result from an X toolkit routine.  Adding a line
like ptr++; ptr--; forces the problem to go away (as does any lvalue reference
in the routine; the pop-order bug only occurs in routines where a register
is used as an lvalue of itself).

Using Motif 1.2's patched Xt routines fixed it.

I've had /dev/tty00 and /dev/tty01 instead of /dev/com1 and /dev/com2 since
about day 1, so I never had the select() problem personally, mostly because
I serendipitously fixed the select() in the com driver at the same time I
made it conform to my idea of "pretty".


					Terry Lambert
					terry_lambert@gateway.novell.com
					terry@icarus.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                                       terry@icarus.weber.edu
 "I have an 8 user poetic license" - me
-------------------------------------------------------------------------------