Hello,
We're not quite sure what you mean by "active window". Is that the window
which has the focus? When we move the cursor about on our screens the
focus follows the cursor at least as far as the graphics windows are
concerned, so if the problem you describe is one of focus it never occurs
for us (that we can easily see, anyway). But I imagine some window
managers might only move the focus when you click on a window explicitly.
Having said that, I just looked at the code and when the cursor enters the
canvas (the bit of the graphics window where the contours are drawn) then
it is supposed to grab the focus. (But maybe it fails on some window
managers???)
Certainly the window which has the focus will get the key event, I'm not
sure we could possibly do it any other way or want to do it any other way.
Well, I guess we could loop over all windows and figure out whether the
cursor is in that window and that window is above all other windows for
which this is true, but I'm not sure I want to go there (morally).
Wayne
On Fri, 4 Feb 2005, Magnus Helgstrand wrote:
> Hi!
>
> I have noticed that when I use markers (pressing th "m" key) in
> analysis, the marker does not always appear on the expected place. This
> happens when another window is active than the window under the cursor.
> Obviously the active window is used as reference. Should it be like
> this?
>
> Magnus
>
> ----------------------------------
> Magnus Helgstrand
> Dept. of Biophysical Chemistry
> Lund University
> Box 124
> SE-221 00 Lund
> Sweden
>
> Phone: +46-46-2228173
>
|