Mouse input on the UNIX PC, a question or two..

Lenny Tropiano lenny at icus.UUCP
Wed Jul 27 13:23:02 AEST 1988


I have a question [yes, I do have questions every once and a while :-)] ...
I'm currently working on a total rewrite of the window manager... It has
some extra added features put the original functionality.  The problem I 
am running across currently is how the "original wmgr" woke up when the
mouse clicked on the [w] icon.   I've played with a bunch of things everything
from tam's wreadmouse() to track(3T).  The problem I am encountering is
I have a window that is basically sitting idle waiting for keyboard input
(Suspd, Rsume, s_Suspd, s_Rsume, s_Print) or Mouse input.  Unfortunately
the window (ie. [w] icon) isn't active, and when I click on the icon, my
cursor moves to that window (up to the [w]), then I have to click once
again for the program that is doing a:
		
			ch = wgetc();

to return from the wgetc call with a "Mouse" kcode (see /usr/include/kcodes.h).

I've played with the MSIN and MSDOWN parameters for the mouse structure
to signal the wgetc call to return Mouse information.  Without double
clicking, how can I achieve this?  I know the window manager (wmgr) does
this ;-)

If someone has any ideas please mail them to me.  Also if anyone has
something they would like my new-and-improved window manager to do, let
me know.   Once the program is finished you'll see it in unix-pc.sources!

-Lenny

-- 
Paper-net: Lenny Tropiano          | @-net:         lenny at icus.UUCP
           ICUS Software Systems   | !-net:      ...sbcs   \
           PO Box 1                |                boulder \
           Islip Terrace, NY 11752 |                talcott  !icus!lenny
Vocal-net: (516) 582-5525 [work]   |                pacbell /
           (516) 968-8576 [home]   |                hombre /
Telex-net: 154232428 ICUS          | Another-net:   attmail!icus!lenny



More information about the Unix-pc.general mailing list