Changeset 3900

Show
Ignore:
Timestamp:
10/12/05 04:25:23 (3 years ago)
Author:
horiguti
Message:

Inhibit hiding mouse cursor when displaying dialogue.
Fixed ticket: 164

Files:

Legend:

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

    r3899 r3900  
     12005-10-12  Kyotaro HORIGUCHI  <horiguti@meadowy.org> 
     2        * mw32fns.c: include <windows.h> to use 
     3        (mw32_inhibit_hide_mouse): New extern. 
     4        (Fmw32_file_dialog): Inhibit hiding mouse cursor when displaying 
     5        dialogue. 
     6        Fixed ticket: 164 
     7 
     8        * mw32term.c: include <windows.h> to use 
     9        (mw32_inhibit_hide_mouse): New varialbe. 
     10        (show_or_hide_mouse_cursor): Inhibit hiding mouse cursor when 
     11        mw32_inhibit_hide_mouse is not 0. 
     12 
    1132005-10-12  Kyotaro HORIGUCHI  <horiguti@meadowy.org> 
    214 
  • trunk/src/mw32fns.c

    r3899 r3900  
    44264426} 
    44274427 
     4428extern int mw32_inhibit_hide_mouse; 
     4429 
    44284430DEFUN ("mw32-file-dialog", Fmw32_file_dialog, Smw32_file_dialog, 2, 5, 0, 
    44294431       doc: /* Read file name, prompting with PROMPT in directory DIR. 
     
    44434445  int filter_index = 1; 
    44444446  OPENFILENAME file_details; 
     4447  int ret; 
    44454448 
    44464449  GCPRO6 (prompt, dir, default_filename, mustmatch, only_dir_p, file); 
     
    45074510  file_details.lpfnHook = (LPOFNHOOKPROC) file_dialog_callback; 
    45084511 
    4509   if (GetOpenFileName (&file_details)) 
     4512  mw32_inhibit_hide_mouse = TRUE; 
     4513  ret = GetOpenFileName (&file_details); 
     4514  mw32_inhibit_hide_mouse = FALSE; 
     4515  if (ret) 
    45104516    { 
    45114517      file = mw32_decode_lispy_string (Vlocale_coding_system, 
  • trunk/src/mw32term.c

    r3899 r3900  
    41774177} 
    41784178 
     4179int mw32_inhibit_hide_mouse = 0; 
     4180 
    41794181static void 
    41804182show_or_hide_mouse_cursor (struct mw32_display_info *dpyinfo, MSG msg) 
     
    41824184  static unsigned int mouse_hide_timer = 0; 
    41834185 
     4186  if (mw32_inhibit_hide_mouse) 
     4187    { 
     4188      if (dpyinfo->mouse_cursor_stat < 0) 
     4189        { 
     4190          dpyinfo->mouse_cursor_stat = 0; 
     4191          ShowCursor (TRUE); 
     4192        } 
     4193      return; 
     4194    } 
     4195       
    41844196  if (mw32_hide_mouse_timeout > 0 
    41854197      && mouse_hide_timer == 0 
     
    41984210          last_mouse_movement_time = msg.time; 
    41994211 
    4200           if (dpyinfo->mouse_cursor_stat < 0
     4212          if (dpyinfo->mouse_cursor_stat == -1
    42014213            { 
    42024214              dpyinfo->mouse_cursor_stat = 0;