| 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.
|