Menu

#809 wm overrideredirect zaps additions to system menu

obsolete: 8.0.3
open
5
2002-08-08
2000-11-01
No

OriginalBugID: 955 Bug
Version: 8.0.3
SubmitDate: '1998-12-14'
LastModified: '2000-01-06'
Severity: MED
Status: Assigned
Submitter: pat
ChangedBy: hobbs
OS: All Windows
Machine: X86

Name: Tim Wilson

ReproducibleScript:
Working on Wish for Win95:

% menu .m
.m
% menu .m.system
.m.system
% .m add cascade -menu .m.system
% .m.system add command -label Hello
% . configure -menu .m
(Observe new "Hello" entry in system menu.)
% . cget -menu
.m
(Confirm Tk knows about menu.)
% wm overrideredirect . 0
(I would expect this to be a no-op, but
observe that "Hello" entry has disappeared from system menu. BUG!)
% . cget -menu
.m
(Tk thinks menu is there... but it isn't displaying it any more.)
% . configure -menu .m
(Observe that this doesn't fix it.)
% . configure -menu {}
% . configure -menu .m
(This pair of operations successfully restores the additions to the system menu.)

Verified that something really screwy is going on in 8.3b1.
The 'wm override' does cause a loss of the system menu additions.
It also causes . to increase in size with each call. Clicking
on the system menu after it disappears caused . to disappear on
me, but you can reconfigure it otherwise.
-- 01/06/2000 hobbs
Partial fix in 8.3b2 - 'wm override' will not do anything unless
you are really changing values, becoming a true noop in the above
case.
-- 01/06/2000 hobbs

Discussion

  • Don Porter

    Don Porter - 2001-03-22
    • labels: 104348 --> 318669
     
  • Don Porter

    Don Porter - 2002-07-05
    • assigned_to: nobody --> chengyemao
     
  • Don Porter

    Don Porter - 2002-07-05

    Logged In: YES
    user_id=80530

    still valid?

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2002-08-08

    Logged In: YES
    user_id=72656

    Also dupped by 587698, it is still a valid problem where the
    wrapper window isn't updating the system menu when it is
    recreated in tkWinWm.c:UpdateWrapper.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2002-08-08
    • labels: 318669 --> 13. Win Menus