[vtk-developers] Python widgets grab focus on enter
David Gobbi
dgobbi at imaging.robarts.ca
Fri Oct 10 16:03:42 EDT 2003
Hi Prabhu,
The reason it does this is, of course, so that keystrokes will be
accepted by the window as long as the cursor is over the window.
Both the vtkTkRenderWidget (the tcl/UNIX version) and the
vtkXRenderWindowInteractor do the same thing.
The 'auto-raise' problem is only an issue on Windows and UNIX
window managers that have auto-raise turned on. Otherwise the
focus-under-mouse behaviour is what people expect (or maybe
only people like me who cut our teeth on twm and fvwm, before
the gnome and KDE people decided that X must behave like Windows).
My advice is, switch the default behaviour to click-to-focus,
but leave the focus-under-mouse as an option.
- David
On Sat, 11 Oct 2003, Prabhu Ramachandran wrote:
> Hi,
>
> Almost all the Python-VTK rendering widgets grab the focus when the
> mouse enters the window. This appears to be incorrect behaviour for
> an application. Almost no application I've seen grabs the pointer in
> this fashion. Usually you need to click on a window to give it
> explicit focus. The current behavior is also quite irritating when
> you have a dialog window open and happen to move the mouse over the
> renderwindow. If you have auto-raise enabled on your window manager
> the dialog will mysteriously disappear below the application window.
>
> I would like to change this behavior so that the window focus is
> grabbed only if a button is clicked on the widget.
>
> Please do let me know if you have objections to this change.
>
> cheers,
> prabhu
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
More information about the vtk-developers
mailing list