Attachment "winwm.patch" to
ticket [409172ff]
added by
hobbs
2001-03-31 02:56:31.
Index: win/tkWinWm.c
===================================================================
RCS file: /cvsroot/tktoolkit/tk/win/tkWinWm.c,v
retrieving revision 1.28
diff -b -c -r1.28 tkWinWm.c
*** win/tkWinWm.c 2001/01/02 19:13:02 1.28
--- win/tkWinWm.c 2001/03/30 19:52:47
***************
*** 1462,1469 ****
TkWindow *winPtr; /* Top-level window to redecorate. */
{
register WmInfo *wmPtr = winPtr->wmInfoPtr;
! HWND parentHWND = NULL, oldWrapper;
! HWND child = TkWinGetHWND(winPtr->window);
int x, y, width, height, state;
WINDOWPLACEMENT place;
HICON hSmallIcon = NULL;
--- 1462,1469 ----
TkWindow *winPtr; /* Top-level window to redecorate. */
{
register WmInfo *wmPtr = winPtr->wmInfoPtr;
! HWND parentHWND, oldWrapper;
! HWND child;
int x, y, width, height, state;
WINDOWPLACEMENT place;
HICON hSmallIcon = NULL;
***************
*** 1473,1480 ****
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
! parentHWND = NULL;
child = TkWinGetHWND(winPtr->window);
if (winPtr->flags & TK_EMBEDDED) {
wmPtr->wrapper = (HWND) winPtr->privatePtr;
--- 1473,1487 ----
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
! if (winPtr->window == None) {
! /*
! * Ensure existence of the window to update the wrapper for.
! */
! Tk_MakeWindowExist((Tk_Window) winPtr);
! }
!
child = TkWinGetHWND(winPtr->window);
+ parentHWND = NULL;
if (winPtr->flags & TK_EMBEDDED) {
wmPtr->wrapper = (HWND) winPtr->privatePtr;