🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by acevedo Mon, 22 Apr 1991 18:24
checking if mouse on a screen
#2005
Author: acevedo
Date: Mon, 22 Apr 1991 18:24
9 lines
1064 bytes
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?

	Raul
Re: checking if mouse on a screen
#2008
Author: Alan M. Carroll
Date: Wed, 24 Apr 1991 13:37
23 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads