Tk Source Code

View Ticket
Login
Ticket UUID: 220142
Title: grab bug
Type: Bug Version: obsolete: 8.0.4
Submitter: welch Created on: 2000-10-31 22:38:43
Subsystem: 65. Generic Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2000-11-01 05:38:44
Resolution: Invalid Closed By: welch
    Closed on: 2000-10-31 22:38:44
Description:
OriginalBugID: 1496 Bug
Version: 8.0.4
SubmitDate: '1999-03-12'
LastModified: '2000-01-27'
Severity: MED
Status: Closed
Submitter: pat
ChangedBy: hobbs
OS: Solaris
OSVersion: 2.5.1
Machine: Other
ClosedDate: '2000-01-27'


Name: steve

Extensions: expect 8.0.4

ReproducibleScript:
    running expectk - same under wish
    
    from menu command call proc to create child window
    from bind double-click listbox call same proc to create child window
    
    the grab gets set to child window everytime using menu option
    so that user can't touch parent window ever.
    
    the grab does not get set to child window everytime using double click
    from listbox.
    
    in other words if the user double clicks the grab does not get
    set everytime - seems to be hit and miss situation.

ObservedBehavior:
    no errors at all ( no stack traces) - the behavior is not consistent
    when setting local grab using the same procedure
    via different call points/events

DesiredBehavior:
    when i call this proc to produce a child window from either
    a menu command or a bind command the grab should work all the
    time.

 Actual code is necessary to really evaluate this one.  I suspect
that the problem is the user may have set up the window to be
grabbed when a mouse button could be down.  This is a special
situation, so if the user needs to set the grab in a case like
that, it has to be coded carefully. 
-- 01/27/2000 hobbs