Tk Source Code

View Ticket
Login
Ticket UUID: 2891541
Title: Grab on . prevents minimizing app on Windows.
Type: Bug Version: obsolete: 8.5.7
Submitter: patthoyts Created on: 2009-11-03 22:48:09
Subsystem: 68. Win Window Operations Assigned To: dgp
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2011-08-03 23:55:08
Resolution: Fixed Closed By: dgp
    Closed on: 2011-08-03 16:55:08
Description:
For bug #1847002 we added some restrictions for system commands when a grab is present. One of the changes was to prevent grabbed toplevels from being minimized as this can confuse users if the only active window in a Tk app disappears.
Unfortunately it seems that some applications manage to leave a grab on the main window. This now prevents the application from being minimized although everything else is normal.
Therefore the previous modification -- deny minimize when a grab is present -- must be changed to deny minimize when a grab is present except when the grab is on the mainwindow (.) and . is the window to be minimized. (This comes out shorter in code).
The application presenting this problem is 'git gui' and their bug is http://code.google.com/p/msysgit/issues/detail?id=301
User Comments: dgp added on 2011-08-03 23:55:08:

allow_comments - 1

merged to trunk

dgp added on 2011-08-03 23:08:34:

allow_comments - 0

Appears this bug fix was never merged to trunk.
I'll be doing that now unless there's some reason
I shouldn't.  Please stop me if that's the case.

patthoyts added on 2009-11-04 06:51:23:

allow_comments - 1

patthoyts added on 2009-11-04 06:51:20:
Applied a fix. Checked that git gui works as expected now.