# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1079425384 0 # Node ID 29547598b909329f66394e1a76947cade4c09884 # Parent e3d6f2aac90c41952de2e47b9925526f38c1d4c6 For whatever reason the new WS_EX_MDICHILD method is not working properly, the MDI child windows won't take focus. But the old SetParent() method seems to work properly, so reverting to the old code for now. diff -r e3d6f2aac90c -r 29547598b909 win/dw.c --- a/win/dw.c Tue Mar 16 07:25:35 2004 +0000 +++ b/win/dw.c Tue Mar 16 08:23:04 2004 +0000 @@ -3775,8 +3775,15 @@ newbox->count = 0; newbox->cinfo.fore = newbox->cinfo.back = -1; + /* Hmm, the "correct" way doesn't seem to be + * working, but the old hackish SetParent() + * at the bottom seems to work, so I'll leave + * it like this for now. + */ +#if 0 if(hwndOwner) flStyleEx |= WS_EX_MDICHILD; +#endif if(!(flStyle & WS_CAPTION)) flStyle |= WS_POPUPWINDOW; @@ -3797,10 +3804,8 @@ } SetWindowLongPtr(hwndframe, GWLP_USERDATA, (LONG_PTR)newbox); -#if 0 if(hwndOwner) SetParent(hwndframe, hwndOwner); -#endif return hwndframe; }