Ticket #40931: patch-wxt-mavericks.diff
File patch-wxt-mavericks.diff, 904 bytes (added by jxy (Xiao-Yong), 11 years ago) |
---|
-
src/wxterminal/wxt_gui.cpp
old new 237 237 238 238 bool wxtApp::OnInit() 239 239 { 240 #ifdef __WXMAC__241 ProcessSerialNumber PSN;242 GetCurrentProcess(&PSN);243 TransformProcessType(&PSN, kProcessTransformToForegroundApplication);244 #endif245 246 240 /* Usually wxWidgets apps create their main window here. 247 241 * However, in the context of multiple plot windows, the same code is written in wxt_init(). 248 242 * So, to avoid duplication of the code, we do only what is strictly necessary.*/ … … 1584 1578 exit(-1); 1585 1579 } 1586 1580 1581 #ifdef __WXMAC__ 1582 ProcessSerialNumber PSN = { 0, kCurrentProcess }; 1583 TransformProcessType(&PSN, kProcessTransformToForegroundApplication); 1584 SetFrontProcess(&PSN); 1585 #endif 1586 1587 1587 /* app initialization */ 1588 1588 wxTheApp->CallOnInit(); 1589 1589