summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-08-10 16:58:52 (GMT)
committerhobbs <hobbs>1999-08-10 16:58:52 (GMT)
commit80e02c2eaf7014febef4e33647fe44f4c09ab3a4 (patch)
tree2e82dd058e271004ee90c67344a5706167486e46 /win/tkWinWm.c
parentf2a7f0b2fc26d79bebbcc94d45583f1e26bba46c (diff)
downloadtk-80e02c2eaf7014febef4e33647fe44f4c09ab3a4.zip
tk-80e02c2eaf7014febef4e33647fe44f4c09ab3a4.tar.gz
tk-80e02c2eaf7014febef4e33647fe44f4c09ab3a4.tar.bz2
1999-08-10 Jeff Hobbs <hobbs@scriptics.com>core_8_2_b3_base
* win/tkWinWm.c: changed "wm deiconify" on Windows to raise and force the focus on the deiconified window (behavioral change from 8.1 to comply better with Windows style) [Bug: 1609]
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index ca2b834..822735e 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWm.c,v 1.9 1999/07/01 00:39:48 redman Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.10 1999/08/10 16:58:52 hobbs Exp $
*/
#include "tkWinInt.h"
@@ -1390,6 +1390,12 @@ Tk_WmCmd(clientData, interp, argc, argv)
return TCL_ERROR;
}
TkpWmSetState(winPtr, NormalState);
+ /*
+ * Follow Windows-like style here:
+ * raise the window to the top and force the focus on it
+ */
+ Tk_RestackWindow(tkwin, Above, NULL);
+ TkSetFocusWin(winPtr, 1);
} else if ((c == 'f') && (strncmp(argv[1], "focusmodel", length) == 0)
&& (length >= 2)) {
if ((argc != 3) && (argc != 4)) {