# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1348719994 0 # Node ID 889f8d47761c87a65cc159393d0d3b26aeec1796 # Parent 68e37fee2b0582ad403891fab9d4b1f11afeaca3 Discovered that _toplevel_window() on OS/2 returned NULLHANDLE when passing in a top-level handle directly; now returns the handle. diff -r 68e37fee2b05 -r 889f8d47761c os2/dw.c --- 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) {