summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-10-21 01:13:06 (GMT)
committerhobbs <hobbs>2004-10-21 01:13:06 (GMT)
commit0f9c3bda5775877cf26e9c274cc60b759eb99e86 (patch)
tree48af2428aa299f7a255e3e8a87612225f0b26bc9
parent46143310c8d375a9451e63ce753d1c654468a98c (diff)
downloadtk-0f9c3bda5775877cf26e9c274cc60b759eb99e86.zip
tk-0f9c3bda5775877cf26e9c274cc60b759eb99e86.tar.gz
tk-0f9c3bda5775877cf26e9c274cc60b759eb99e86.tar.bz2
* win/tkWinWm.c (UpdateWrapper): pass SWP_NOOWNERZORDER to
SetWindowPos when maintaining win Z order, to prevent parent from flashing (adjusting Z order).
-rw-r--r--ChangeLog6
-rw-r--r--win/tkWinWm.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 549ec20..42610bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-20 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * win/tkWinWm.c (UpdateWrapper): pass SWP_NOOWNERZORDER to
+ SetWindowPos when maintaining win Z order, to prevent parent
+ from flashing (adjusting Z order).
+
2004-10-19 Joe English <jenglish@users.sourceforge.net>
TIP#204 IMPLEMENTATION
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index f5587b2..4a57d6a 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.77 2004/10/05 22:04:47 hobbs Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.78 2004/10/21 01:13:06 hobbs Exp $
*/
#include "tkWinInt.h"
@@ -2202,7 +2202,8 @@ UpdateWrapper(winPtr)
wmPtr->hints.initial_state = WithdrawnState;
if (nextHWND) {
SetWindowPos(wmPtr->wrapper, nextHWND, 0, 0, 0, 0,
- SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOSENDCHANGING);
+ SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOSENDCHANGING
+ |SWP_NOOWNERZORDER);
}
TkpWmSetState(winPtr, state);