Tk Source Code

View Ticket
Login
Ticket UUID: 220914
Title: When a toplevel is grabbed, and the mouse pointer is not on top of the toplevel, the ButtonRelease event is lost
Type: Bug Version: obsolete: 8.3.1
Submitter: welch Created on: 2000-11-01 01:31:08
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-03-27 22:14:16
Resolution: Duplicate Closed By: dkf
    Closed on: 2001-03-27 15:14:16
Description:
OriginalBugID: 5381 Bug
Version: 2.0b8
SubmitDate: '2000-05-05'
LastModified: '2000-09-03'
Severity: LOW
Status: UnAssn
Submitter: kuchler
ChangedBy: sven
RelatedBugIDs: 4695 5310
OS: All Windows


In two different situations, when a toplevel has grab, and the mouse button
(in this case mouse button 1) is pressed down, and then moved onto the
windows desktop and released, the button release event is not sent to the
window that has the grab.

When doing a BWidget drag, if you drop onto the desktop, the button release
is never sent to the toplevel that has the grab.  This means that the toplevel that you are dragging, continues to think you are dragging even
though you released the mouse button.  Clicking a second time on the
desktop will then drop the toplevel (make it disappear)

The second situation is where you have a dialog with a grab that contains
a ScrolledWindow with a text widget inside of it.  When the text in the
text widget in the ScrolledWindow is selected and you continue the mouse
drag off the text widget and onto the desktop before releasing the mouse
button, and then move the mouse back up over the text widget, the text
selection continues to change even though the mouse button has been
released.  This is because no button release event was ever recieved by
the toplevel.

See the related bugs for more details.



Probably can't be changed by Connect2.0 because this would require a
patched core or new release of the core. 
-- 05/05/2000 kuchler
User Comments: dkf added on 2001-03-27 22:14:16:
Logged In: YES 
user_id=79902

Duplicate of #220790