# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1335632780 0 # Node ID b09f5f73189c9bbce9591e802a4457b43e9a38f5 # Parent e19b93a8229b4ce241db1c369695100070fec927 On OS/2 and Windows need to use the parent (box) handle not the item handle to trigger window redrawing. diff -r e19b93a8229b -r b09f5f73189c os2/dw.c --- a/os2/dw.c Fri Apr 27 16:02:32 2012 +0000 +++ b/os2/dw.c Sat Apr 28 17:06:20 2012 +0000 @@ -7247,7 +7247,7 @@ if(handle) WinSetParent(handle, HWND_OBJECT, FALSE); /* Queue a redraw on the top-level window */ - _dw_redraw(_toplevel_window(handle), TRUE); + _dw_redraw(_toplevel_window(parent), TRUE); return DW_ERROR_NONE; } } diff -r e19b93a8229b -r b09f5f73189c win/dw.c --- a/win/dw.c Fri Apr 27 16:02:32 2012 +0000 +++ b/win/dw.c Sat Apr 28 17:06:20 2012 +0000 @@ -7021,7 +7021,7 @@ thisbox->count--; SetParent(handle, DW_HWND_OBJECT); /* Queue a redraw on the top-level window */ - _dw_redraw(_toplevel_window(handle), TRUE); + _dw_redraw(_toplevel_window(parent), TRUE); return DW_ERROR_NONE; } }