| Description: |
OriginalBugID: 5031 Bug
Version: 8.2.3
SubmitDate: '2000-04-12'
LastModified: '2000-04-25'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2272
OS: All Windows
OSVersion: Windows 98 Second Edition
Machine: Any intel PC
FixedDate: '2000-04-25'
FixedInVersion: 8.3.1
Name: Haneef Mohammed
Comments:
We in our organization moved from a primarily Unix platform to
a windoze platform and everybody is so used to this Xmouse behaviour.
I am trying to move our development to Tcl/Tk but it has not been
received very well by the end users because of this (in my opinion
minor irritant).
ReproducibleScript:
1. Enable Xmouse on your Windows. You can do this using TweakUI
(in Control Panel) in the Mouse Tab. You can install TweakUI from
the Windows 98 PLUS CD. You can apparently also enable Xmouse on Win95
and WinNT4.0 by setting the following registry entry...
\My Computer\HKEY_CURRENT_USER\Control Panel\Mouse = 0x1
2. When Xmouse is enabled, the top level windows get activted (and get
focus) when the mouse moves over the window without raising that window.
3. Invoke Wish. This will create two top level windows. Arrange these windows
such that they overlap somewhat.
4. Activate one of the Wish top levels and now move your mouse (without
clicking) from one window to the other. You will notice that these windows
are automatically raising themselves. This is not correct behaviour
5. Now activate some other window. Notice that you can activate any non-tk
window just by moving your mouse over it.
6. Move the mouse back to any tk window. You will notice that the Tk windows
never activate unless you actually click your mouse in it. This is also
not correct behaviour.
ObservedBehavior:
1. Top level windows should not auto-raise just because they
get activated.
2. The WM_MOUSEACTIVATE event should be handled just like the
Windows Default procedure does.
3. I have tried the tk_focusFollowsMouse but that only seems to work
within the Tk window hierarchy.
DesiredBehavior:
The problem is with the handling of WM_MOUSEACTIVATE, in win/tkWinWm.c
If I let the DefWindowProc handle this event, everything works fine. But
seems like Tk wanted to handle this event itself (I guess to emulate
grabbing properly). I do not know enough about Tk to be able to fix this
bug myself. I have already documented the expected behaviour in my instructions
to duplicate the problem.
Verified with 8.3.0 on NT with TweakUI 1.1.
-- 04/25/2000 hobbs
Fixed for 8.3.1 (see related bug 2272).
-- 04/25/2000 hobbs
|