# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1324126974 0 # Node ID e325f98a27923fdb4429038f94ee7a7f72b25bbc # Parent 77f530f9582631f56892a8e377fd988065c3152b FIXME: Workaround for items on the top-level not getting WM_PAINT messages on Windows. This is not a proper fix to the issue; when a better solution is possible please replace! diff -r 77f530f95826 -r e325f98a2792 win/dw.c --- a/win/dw.c Sat Dec 17 11:34:25 2011 +0000 +++ b/win/dw.c Sat Dec 17 13:02:54 2011 +0000 @@ -1445,8 +1445,10 @@ else { /* Everything else */ - MoveWindow(handle, currentx + pad, currenty + pad, - width, height, FALSE); + if(*depth) + MoveWindow(handle, currentx + pad, currenty + pad, width, height, FALSE); + else /* FIXME: This is a hack to generate WM_PAINT messages for items on the top-level */ + SetWindowPos(handle, HWND_TOP, currentx + pad, currenty + pad, width, height, 0); /* After placing a box... place its components */ if(thisbox->items[z].type == TYPEBOX)