Changeset 3900
- Timestamp:
- 10/12/05 04:25:23 (3 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/mw32fns.c (modified) (3 diffs)
- trunk/src/mw32term.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r3899 r3900 1 2005-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 1 13 2005-10-12 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 14 trunk/src/mw32fns.c
r3899 r3900 4426 4426 } 4427 4427 4428 extern int mw32_inhibit_hide_mouse; 4429 4428 4430 DEFUN ("mw32-file-dialog", Fmw32_file_dialog, Smw32_file_dialog, 2, 5, 0, 4429 4431 doc: /* Read file name, prompting with PROMPT in directory DIR. … … 4443 4445 int filter_index = 1; 4444 4446 OPENFILENAME file_details; 4447 int ret; 4445 4448 4446 4449 GCPRO6 (prompt, dir, default_filename, mustmatch, only_dir_p, file); … … 4507 4510 file_details.lpfnHook = (LPOFNHOOKPROC) file_dialog_callback; 4508 4511 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) 4510 4516 { 4511 4517 file = mw32_decode_lispy_string (Vlocale_coding_system, trunk/src/mw32term.c
r3899 r3900 4177 4177 } 4178 4178 4179 int mw32_inhibit_hide_mouse = 0; 4180 4179 4181 static void 4180 4182 show_or_hide_mouse_cursor (struct mw32_display_info *dpyinfo, MSG msg) … … 4182 4184 static unsigned int mouse_hide_timer = 0; 4183 4185 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 4184 4196 if (mw32_hide_mouse_timeout > 0 4185 4197 && mouse_hide_timer == 0 … … 4198 4210 last_mouse_movement_time = msg.time; 4199 4211 4200 if (dpyinfo->mouse_cursor_stat < 0)4212 if (dpyinfo->mouse_cursor_stat == -1) 4201 4213 { 4202 4214 dpyinfo->mouse_cursor_stat = 0;
