# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1318278232 0 # Node ID b54d37938d61d3ec0179b0ab2f757461f55ba18f # Parent d865c29fc06a45a24847aa55266d9981b3946ec3 Fix for the status popup menu not functioning when a different notebook tab is visible. Should try to fix this issue in the library itself but for now this will work. diff -r d865c29fc06a -r b54d37938d61 dwtest.c --- a/dwtest.c Mon Oct 10 11:03:43 2011 +0000 +++ b/dwtest.c Mon Oct 10 20:23:52 2011 +0000 @@ -856,7 +856,12 @@ dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); dw_pointer_query_pos(&px, &py); - dw_menu_popup(&hwndMenu, window, (int)px, (int)py); + /* Use the toplevel window handle here.... because on the Mac.. + * using the control itself, when a different tab is active + * the control is removed from the window and can no longer + * handle the messages. + */ + dw_menu_popup(&hwndMenu, mainwindow, (int)px, (int)py); return TRUE; }