Ticket #40931: patch-wxt-mavericks.diff

File patch-wxt-mavericks.diff, 904 bytes (added by jxy (Xiao-Yong), 11 years ago)

Patch for gnuplot-4.6.4

  • src/wxterminal/wxt_gui.cpp

    old new  
    237237
    238238bool wxtApp::OnInit()
    239239{
    240 #ifdef __WXMAC__
    241         ProcessSerialNumber PSN;
    242         GetCurrentProcess(&PSN);
    243         TransformProcessType(&PSN, kProcessTransformToForegroundApplication);
    244 #endif
    245 
    246240        /* Usually wxWidgets apps create their main window here.
    247241         * However, in the context of multiple plot windows, the same code is written in wxt_init().
    248242         * So, to avoid duplication of the code, we do only what is strictly necessary.*/
     
    15841578                                exit(-1);
    15851579                }
    15861580
     1581#ifdef __WXMAC__
     1582                ProcessSerialNumber PSN = { 0, kCurrentProcess };
     1583                TransformProcessType(&PSN, kProcessTransformToForegroundApplication);
     1584                SetFrontProcess(&PSN);
     1585#endif
     1586
    15871587                /* app initialization */
    15881588                wxTheApp->CallOnInit();
    15891589