Article View: gnu.epoch.misc
Article #2008Re: checking if mouse on a screen
From: Alan M. Carroll
Date: Wed, 24 Apr 1991 13:37
Date: Wed, 24 Apr 1991 13:37
23 lines
1816 bytes
1816 bytes
In article <9104221824.AA11530@boom>, acevedo@ATHENA.MIT.EDU writes: > > Hello ... when I select to a new screen, I don't ALWAYS want it raised > automatically. Usually I only want it raised iff either the cursor is > not visible, or the mouse is not over the new screen. Is there a way to > tell this within epoch? That is, to know, for the current screen, if > the mouse is over the screen, and/or if the portion of the screen that > shows the text cursor is visible. Is this possible? How? > 1. To tell if the mouse is inside a screen, use the (query-mouse) function, and check the return values against the size of the screen. Remember that (epoch::screen-height) and (epoch::screen-width) take an optional screen argument, as does (query-mouse). 2. I don't think you can tell if the text cursor is visible, since there is no way to determine X window stacking order from inside Epoch. -- Alan M. Carroll <-- Another victim of applied metaphysics Epoch Development Team Urbana Il. "I hate shopping with the reality-impaired" - Susan
Technical Details
Message-ID:
<1991Apr24.133704.485@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!uiucdcs!carrollReferences:
<9104221824.AA11530@boom>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,9f67f139a2ceaaeb X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-04-24 22:46:45 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!uiucdcs!carroll From: carroll@cs.uiuc.edu (Alan M. Carroll) Newsgroups: gnu.epoch.misc Subject: Re: checking if mouse on a screen Message-ID: <1991Apr24.133704.485@m.cs.uiuc.edu> Date: 24 Apr 91 13:37:04 GMT References: <9104221824.AA11530@boom> Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager)) Distribution: gnu Organization: Technophiles Inc. - Engineers with Attitude Lines: 23 Nntp-Posting-Host: ash.cs.uiuc.edu