Tk Source Code

View Ticket
Login
Ticket UUID: 2785744
Title: Incorrect setting of window flags
Type: Bug Version: obsolete: 8.5.7
Submitter: treectrl Created on: 2009-05-02 19:34:49
Subsystem: 68. Win Window Operations Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-05-03 13:50:22
Resolution: Fixed Closed By: dkf
    Closed on: 2009-05-03 06:49:45
Description:
On line 2356 of tkWinWm.c the WM_SYNC_PENDING flag is set with '=' instead of or'ing it with '|=' when a toplevel has a menu. This causes all other window flags (including those set by [wm resizable]) to be forgotten.

    if (wmPtr->hMenu != NULL) {
wmPtr->flags = WM_SYNC_PENDING;
SetMenu(wmPtr->wrapper, wmPtr->hMenu);
wmPtr->flags &= ~WM_SYNC_PENDING;
    }
User Comments: dkf added on 2009-05-03 13:49:45:

allow_comments - 1

fixed in HEAD and 8.5 branch