Changeset 4088

Show
Ignore:
Timestamp:
05/25/06 17:51:15 (3 years ago)
Author:
shirai
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ChangeLog.Meadow

    r4085 r4088  
     12006-05-25  Hideyuki SHIRAI  <shirai@meadowy.org> 
     2        Thanks Yamazaki-san <yamazaki-k@mwe.biglobe.ne.jp> and his patchs 
     3        again; Ticket #237 and #299. 
     4 
     5        * mw32fns.c (mw32_WndProc): Sleep message thread in a few minutes 
     6        for main thread running. 
     7 
     8        * xdisp.c (note_mouse_highlight): If call in message-thread, 
     9        suspend and resume the main-thread during to change the buffer. 
     10 
    1112006-05-18  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    212 
  • trunk/src/mw32fns.c

    r4032 r4088  
    19581958              EndPaint (FRAME_MW32_WINDOW (f), &ps); 
    19591959            } 
     1960          else 
     1961            { 
     1962              /* Sleep message thread in a few minutes to run main thread */ 
     1963              Sleep (2); 
     1964            } 
    19601965          LeaveCriticalSection (&(f->output_data.mw32->hdc_critsec)); 
    19611966 
     
    19911996        MW32_FRAME_CARET_BLOCKED (f) = FALSE; 
    19921997        PostMessage (hwnd, WM_EMACS_SETCARET, (WPARAM)SHOWN_CARET, (LPARAM)0); 
    1993       }         
     1998      } 
    19941999    return 0; 
    19952000 
     
    20082013    /* reset mouse face and help echo.  */ 
    20092014    mw32_update_frame_alpha (f); 
    2010      
     2015 
    20112016    PostMessage (hwnd, WM_EMACS_CLEAR_MOUSE_FACE, 
    20122017                 (WPARAM) 1, (LPARAM) 0); 
     
    24242429            break; 
    24252430        } 
    2426        
     2431 
    24272432      if (mw32_get_ime_undetermined_string_length (hwnd) == 0) 
    24282433        { /* Cancelling composition string */ 
    24292434          mw32_ime_cancel_input_function (); 
    2430         }       
    2431        
     2435        } 
     2436 
    24322437      goto dflt; 
    24332438    } 
     
    25762581          if (MW32_FRAME_CARET_BLOCKED (f)) 
    25772582            goto setcaret_end; 
    2578              
     2583 
    25792584          MW32_FRAME_CARET_BLOCKED (f) = TRUE; 
    25802585 
     
    26192624                caret_spec_changed = FALSE; 
    26202625              } 
    2621              
     2626 
    26222627            if (MW32_FRAME_CARET_STATE (f) == NO_CARET) 
    26232628              { 
  • trunk/src/xdisp.c

    r4085 r4088  
    2277922779        goto set_cursor; 
    2278022780 
     22781#ifdef MEADOW 
     22782      if (!MW32_MAIN_THREAD_P ()) 
     22783        { 
     22784          SuspendThread (main_thread); 
     22785        } 
     22786#endif 
    2278122787      /* Make the window's buffer temporarily current for 
    2278222788         overlays_at and compute_char_face.  */ 
     
    2312123127      ZV = ozv; 
    2312223128      current_buffer = obuf; 
     23129#ifdef MEADOW 
     23130      if (!MW32_MAIN_THREAD_P ()) 
     23131        { 
     23132          ResumeThread (main_thread); 
     23133        } 
     23134#endif 
    2312323135    } 
    2312423136