AFAIK the only screen the mousepointer can be _seen_ over is the frontmost one
And there is no concept like "inactive screen" in Intuition so far.
Im not on my Amiga right now, but AFAIR this information can be found in IntuitionBase structure, some structure member called FirstScreen or similar. There is a member for the active window (the one holding the input focus, not necessarily located on the frontmost screen, btw.), too, IIRC.
Oh, and dont forget to lock IntuitionBase first!
Edit: Uh oh, Im not right with my first sentence. There are indeed more screens possible. One has to calculate the screen offset into this! This means, if there occurs screen dragging, the screen the mouse is over could be one that is seen in the "background"! One has to check, if one of the possible screens (there is a list of all screens opened atm. one traverses locked IntuitionBase, dont know its name atm.) has its bounds hit by the mouse pointer "hot spot" in order to get the right screen the mouse is over. The bounds result from all screen´s offset differences. E.g. frontmost screens offset is 20, screen behind has offset 0, so the background screen´s bounds are 20 x screen width (roughly. There is more information in Intuition includes).
Edited by whose on 2011/4/18 18:54:25