Thread View: gnu.epoch.misc
3 messages
3 total messages
Started by acevedo
Thu, 25 Apr 1991 18:14
Re: checking if mouse on a screen
Author: acevedo
Date: Thu, 25 Apr 1991 18:14
Date: Thu, 25 Apr 1991 18:14
29 lines
2043 bytes
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
Re: checking if mouse on a screen
Author: Steve Tynor
Date: Thu, 25 Apr 1991 20:07
Date: Thu, 25 Apr 1991 20:07
16 lines
1399 bytes
1399 bytes
On a similar vent, I'd like to set auto-raise to nil, but have the
_minibuffer_ autoraise whenever a screen is selected (well, actually,
whenever the screen gets keyboard focus - is this different?) I've tried
lots of variations to the *select-screen-hook*, but none raise the
minibuffer when I expect it.
I'm using the minibuf.el that is distributed in the contrib/anonymous
directory, Epoch 3.2, SunOS 4.1.1, OpenWindows 2.0, Sparc IPC, if that
matters.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Eschew Obfuscation.
Steve Tynor
Georgia Tech Research Institute
tynor@prism.gatech.edu
Autoraising just the minibuffer.
Author: Alan M. Carroll
Date: Fri, 26 Apr 1991 12:09
Date: Fri, 26 Apr 1991 12:09
17 lines
1395 bytes
1395 bytes
In article <TYNOR.91Apr25160723@hydra.gatech.edu>, tynor@hydra.gatech.edu (Steve Tynor) writes: > On a similar vent, I'd like to set auto-raise to nil, but have the > _minibuffer_ autoraise whenever a screen is selected This is the code that I use, which seems to work. It lets the WM raise the screen, and always raises the minibuffer. (setq auto-raise-screen nil) (push (function (lambda () (raise-screen (minibuf-screen)))) *select-screen-hook* ) -- 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