Mercurial > dwindows
changeset 1227:b54d37938d61
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.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 10 Oct 2011 20:23:52 +0000 |
parents | d865c29fc06a |
children | f0746937f2c6 |
files | dwtest.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }