Mercurial > dwindows
changeset 1801:889f8d47761c
Discovered that _toplevel_window() on OS/2 returned NULLHANDLE
when passing in a top-level handle directly; now returns the handle.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 27 Sep 2012 04:26:34 +0000 |
parents | 68e37fee2b05 |
children | aedf5903db0a |
files | os2/dw.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Thu Sep 27 03:56:48 2012 +0000 +++ b/os2/dw.c Thu Sep 27 04:26:34 2012 +0000 @@ -305,6 +305,9 @@ { HWND box, lastbox = WinQueryWindow(handle, QW_PARENT); + if(lastbox == desktop) + return handle; + /* Find the toplevel window */ while((box = WinQueryWindow(lastbox, QW_PARENT)) != desktop && box) {