diff options
| -rw-r--r-- | alf/alftoplevel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alf/alftoplevel.cpp b/alf/alftoplevel.cpp index 0747ea2..23d2da3 100644 --- a/alf/alftoplevel.cpp +++ b/alf/alftoplevel.cpp @@ -473,7 +473,7 @@ ALF_CreateToplevelWindow(DWORD exstyle, DWORD style, HWND hwndOwner, ALFApplicat if (hwndOwner == GetDesktopWindow()) hwndOwner = NULL; - if (hwndOwner && GetWindowLong(hwndOwner, GWL_STYLE) & WS_CHILD) + while (hwndOwner && GetWindowLong(hwndOwner, GWL_STYLE) & WS_CHILD) hwndOwner = GetParent(hwndOwner); // copy app of owner, but only if we're in the same thread |
