From: SMTP%"tihor@acf4.NYU.EDU" 20-SEP-1990 19:35:38.44 To: tihor@acf4.NYU.EDU CC: Subj: Re: "Click to type" on DECWINDOWS Received: from acf4.NYU.EDU by ACF7.NYU.EDU with SMTP; Thu, 20 Sep 1990 19:35:30 EDT Received: by acf4.NYU.EDU (5.61/1.34) id AA09897; Thu, 20 Sep 90 19:33:38 -0400 Date: Thu, 20 Sep 90 19:33:38 -0400 From: tihor@acf4.NYU.EDU (Stephen Tihor) Message-Id: <9009202333.AA09897@acf4.NYU.EDU> To: tihor@acf4.NYU.EDU Subject: Re: "Click to type" on DECWINDOWS Newsgroups: comp.os.vms In-Reply-To: article <1990Sep14.155808.2469@vax1.sara.nl> of 14 Sep 90 10:58 EDT /* acf4:comp.os.vms / toon@vax1.sara.nl / 10:58 am Sep 14, 1990 */ In article <6780@darkstar.ucsc.edu>, mcmahon@tgv.com (John McMahon) writes: > :In article <1554@front.se>, thomas@front.se (Thomas Thyberg) writes: > :Is there a way to get the keyboard focus to follow the mouse pointer? > > The following program was posted to comp.os.vms a while ago, unfortunately I > have lost the name of the person who provided it. It provides the "mouse > following focus" that you desire under the DECwindows window manager. > ... Follows some 200+ lines of codes - works as advertised. But, you might want to have the window with the (newly acquired) focus to rise to the top. If so, include: > case EnterNotify: focus = enter->window; > XSetInputFocus(display,focus, > RevertToPointerRoot,CurrentTime); /* ---> */ XRaiseWindow(display, focus); /* <---- */ > break; > > John 'Fast-Eddie' McMahon : MCMAHON@TGV.COM : TTTTTTTTTTTTTTTTTTTTTTTT > TGV, Incorporated : : T GGGGGGG V V > 603 Mission Street : HAVK (abha) Gur bayl : T G V V > Santa Cruz, California 95060 : bcrengvat flfgrz gb : T G GGGG V V > 408-427-4366 or 800-TGV-3440 : or qrfgeblrq ol znvy : T GGGGGGG V -- Toon Moene, SARA - Amsterdam (NL) Internet: TOON@SARA.NL Cyclists don't need a garage to start with. /* ---------- */ From: SMTP%"tihor@acf4.NYU.EDU" 20-SEP-1990 19:36:23.63 To: tihor@acf4.NYU.EDU CC: Subj: Re: "Click to type" on DECWINDOWS Received: from acf4.NYU.EDU by ACF7.NYU.EDU with SMTP; Thu, 20 Sep 1990 19:36:11 EDT Received: by acf4.NYU.EDU (5.61/1.34) id AA09916; Thu, 20 Sep 90 19:34:18 -0400 Date: Thu, 20 Sep 90 19:34:18 -0400 From: tihor@acf4.NYU.EDU (Stephen Tihor) Message-Id: <9009202334.AA09916@acf4.NYU.EDU> To: tihor@acf4.NYU.EDU Subject: Re: "Click to type" on DECWINDOWS Newsgroups: comp.os.vms In-Reply-To: article <900918173519.25c004ca@SCIVAX.STSCI.EDU> of 18 Sep 90 17:35 EDT /* acf4:comp.os.vms / STFOSC::EVANS@SCIVAX.STSCI.EDU (Ian Evans @ Space Telescope Science Institute) / 5:35 pm Sep 18, 1990 */ Toon Moene writes: >In article <6780@darkstar.ucsc.edu>, mcmahon@tgv.com (John McMahon) writes: >> :In article <1554@front.se>, thomas@front.se (Thomas Thyberg) writes: >> :Is there a way to get the keyboard focus to follow the mouse pointer? . . . > ... Follows some 200+ lines of codes - works as advertised. > But, you might want to have the window with the (newly acquired) > focus to rise to the top. If so, include: > >> case EnterNotify: focus = enter->window; >> XSetInputFocus(display,focus, >> RevertToPointerRoot,CurrentTime); > /* ---> */ XRaiseWindow(display, focus); /* <---- */ >> break; This does not work 100%. In particular, it will not (a) raise the Icon Box to the top when you move the pointer to the Icon Box, and (b) it does not behave correctly if there is a private colormap associated with the window (the colormap doesn't get loaded). Does anyone know what the general solution for the problem is? Ian Evans Phone: +1-(301)-338-4756 Space Telescope Science Institute Internet: evans@scivax.stsci.edu 3700 San Martin Drive Bitnet: evans@stsci Baltimore, MD 21218 SPAN: stfosc::evans U.S.A. /* ---------- */