Tk Source Code

View Ticket
Login
Ticket UUID: 219949
Title: wm deiconify $win doesn't raise at the same time
Type: Bug Version: final: 8.0.5
Submitter: welch Created on: 2000-10-31 19:01:11
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-04-25 06:21:05
Resolution: Duplicate Closed By: dgp
    Closed on: 2001-04-24 23:21:05
Description:
OriginalBugID: 1610 Bug
Version: 8.0.5
SubmitDate: '1999-03-23'
LastModified: '1999-03-23'
Severity: MED
Status: Closed
Submitter: welch
ChangedBy: stanton
RelatedBugIDs: 1609
OS: Windows NT
OSVersion: 4.0
Machine: X86
ClosedDate: '1999-03-23'


Name:

Marco R. Gazzetta



CVS:

RCS: @(#) $Id: tkWinWm.c,v 1.7 1999/03/10 19:29:24 redman Exp $



ReproducibleScript:

    wish80d.exe

    wm withdraw .

    [ now click on any window that was behind . ]

    wm deiconify .

    







ObservedBehavior:

    the main window never appears

    







DesiredBehavior:

    the main window shows up

    







Patch:

Index: tkWinWm.c

===================================================================

RCS file: /cvsroot/tk/win/tkWinWm.c,v

retrieving revision 1.7

diff -c -r1.7 tkWinWm.c

*** tkWinWm.c   1999/03/10 19:29:24     1.7

--- tkWinWm.c   1999/03/23 18:17:15

***************

*** 1348,1353 ****

--- 1348,1358 ----

                      ": it is an embedded window", (char *) NULL);

              return TCL_ERROR;

          }

+         /* Annoying bug on windows: whenever a window is iconified, it

+          * is put at the end of the Z-order. If we don't restack here,

+          * deiconified windows stay always in the background (marcog)

+          */

+         Tk_RestackWindow(tkwin,Above,NULL);

        TkpWmSetState(winPtr, NormalState);

      } else if ((c == 'f') && (strncmp(argv[1], "focusmodel", length) == 0)

            && (length >= 2)) {







PatchFiles:

    tkWinWm.c

    









    the standard behavior on UNIX is that wm deiconify not only RAISES the
    window, it additionally focuses it. I left that out in the patch to have
    minimal impact, but it might be considered. As soon as this patch is in
    and if the UNIX behavior  is considered a model, the focus change could
    be added as well.
    
    This second consideration seemed less important to me. The problem was
    that the window, since not showing up, was never percieved as existing,
    which meant quite a debugging effort.