mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=6532
This commit is contained in:
parent
8daba3cd79
commit
2ac5b0497c
|
@ -435,7 +435,8 @@ void CTaskBarIcon::AdjustMenuItems(wxMenu* menu) {
|
|||
}
|
||||
|
||||
#ifdef __WXMAC__
|
||||
WindowRef win = ActiveNonFloatingWindow();
|
||||
// WindowRef win = ActiveNonFloatingWindow();
|
||||
WindowRef win = FrontWindow();
|
||||
WindowModality modality = kWindowModalityNone;
|
||||
wxMenuItem *item;
|
||||
unsigned int i;
|
||||
|
|
|
@ -262,6 +262,15 @@ pascal OSStatus SysMenuEventHandler( EventHandlerCallRef inHandlerCallRef,
|
|||
pFrame->Show();
|
||||
pFrame->SendSizeEvent();
|
||||
}
|
||||
// If a modal dialog was open, make sure it remains in front
|
||||
WindowRef win = GetWindowList();
|
||||
WindowModality modality = kWindowModalityNone;
|
||||
while (win) {
|
||||
GetWindowModality(win, &modality, NULL);
|
||||
if (modality == kWindowModalityAppModal)
|
||||
BringToFront(win);
|
||||
win = GetNextWindow(win);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue