diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-06-24 11:14:27 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-06-24 11:14:27 +0200 |
| commit | 02c1f4e9165084589941ce205defaf5f3f1ea90f (patch) | |
| tree | b70b352ef3b3513391a3fa79868dd9cb19bef601 /alf/alftoplevel.cpp | |
| parent | 0817e451578b2920ec30a2ebb88fe908cf60c0e0 (diff) | |
toplevel: fix finding ancestor when passing a child as owner
Diffstat (limited to 'alf/alftoplevel.cpp')
| -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 |
