🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2009

Re: checking if mouse on a screen

#2009
From: acevedo
Date: Thu, 25 Apr 1991 18:14
29 lines
2043 bytes
  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).

Ok, I finally understand, and there's been a misunderstanding.  :-)

The problem is this: suppose I have two screens up, A and B.  Screen A
is on top of screen B, completely obscuring screen B.  Now, I issue a
command which happens to select screen B; and, whenever I select a
screen, I warp the mouse cursor to the center of that screen.  Now, the
problem is this: screen B is still obscured.  I do not like to do a
raise on every screen I select, because I do like to overlap my windows,
but if the screen I select is not visible at all (by my criteria, if the
mouse is not on the screen, it's not visible), then I'd like to raise
it.

So maybe I should ask this: how can I get the screen the mouse is on?
Literally?  Just because I warped the mouse to the center of screen B,
doesn't mean the mouse is on screen B, since B is still obscured (or at
least the part of B the mouse is pointing at is obscured).

Can this be done somehow?  It IS frustrating to have to do a raise on
every screen; for me, one of the features of epoch is that I can view
several buffers on different screens at the same time, and the way I do
it is by overlapping screens.

	Raul
Technical Details
Message-ID: <9104251814.AA08658@boom>
Path: arc1-ca.pugleaf.net!gmdzi!unido!opal!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!wuarchive!uunet!tut.cis.ohio-state.edu!unreplyable!garbage

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-26 00:53:20 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!opal!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!wuarchive!uunet!tut.cis.ohio-state.edu!unreplyable!garbage
From: acevedo@ATHENA.MIT.EDU
Newsgroups: gnu.epoch.misc
Subject: Re: checking if mouse on a screen
Message-ID: <9104251814.AA08658@boom>
Date: 25 Apr 91 18:14:04 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 29