Changeset 4092

Show
Ignore:
Timestamp:
06/10/06 08:55:41 (2 years ago)
Author:
miyoshi
Message:

(mw32_process_main_thread_message): Don't update the
cursor if the root window of the frame is nil.
(mw32_message_loop<WM_EMACS_CLEAR_MOUSE_FACE>): Don't clear mouse
face if the frame is NULL.
Refer to ticket:305 for these changes. Thanks to the anonymous
contributor to this ticket.

Files:

Legend:

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

    r4091 r4092  
     12006-06-10  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * mw32term.c (mw32_process_main_thread_message): Don't update the 
     4        cursor if the root window of the frame is nil. 
     5        (mw32_message_loop<WM_EMACS_CLEAR_MOUSE_FACE>): Don't clear mouse 
     6        face if the frame is NULL. 
     7        Refer to ticket:305 for these changes. Thanks to the anonymous 
     8        contributor to this ticket. 
     9 
    1102006-05-27  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    211 
  • trunk/src/mw32term.c

    r4074 r4092  
    42124212          { 
    42134213            FRAME_PTR f = (FRAME_PTR) msg.wParam; 
    4214             x_update_cursor (f, 1); 
     4214            if (!NILP (f->root_window)) 
     4215              x_update_cursor (f, 1); 
    42154216            break; 
    42164217          } 
     
    50205021          */ 
    50215022        case WM_EMACS_CLEAR_MOUSE_FACE: 
    5022           mw32_clear_mouse_face (f); 
    5023  
    5024           /* Generate a nil HELP_EVENT to cancel a help-echo. 
    5025              Do it only if there's something to cancel. 
    5026              Otherwise, the startup message is cleared when 
    5027              the mouse leaves the frame.  */ 
    5028           if (msg.wParam && any_help_event_p) 
     5023          if (f) 
    50295024            { 
    5030               Lisp_Object frame; 
    5031  
    5032               XSETFRAME (frame, f); 
    5033               help_echo_string = Qnil; 
    5034               gen_help_event (Qnil, frame, Qnil, Qnil, 0); 
    5035               any_help_event_p = 0; 
     5025              mw32_clear_mouse_face (f); 
     5026 
     5027              /* Generate a nil HELP_EVENT to cancel a help-echo. 
     5028                 Do it only if there's something to cancel. 
     5029                 Otherwise, the startup message is cleared when 
     5030                 the mouse leaves the frame.  */ 
     5031              if (msg.wParam && any_help_event_p) 
     5032                { 
     5033                  Lisp_Object frame; 
     5034 
     5035                  XSETFRAME (frame, f); 
     5036                  help_echo_string = Qnil; 
     5037                  gen_help_event (Qnil, frame, Qnil, Qnil, 0); 
     5038                  any_help_event_p = 0; 
     5039                } 
    50365040            } 
    50375041          break;