# HG changeset patch # User Jason Rumney # Date 1205946258 0 # Node ID be40d8a9bcc177c673d27de8790a10dc5e616d1c # Parent 66248fc5b5237292fbfac3f2b4a5113fa2010843 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables. (syms_of_w32fns): Initialize them. (HOURGLASS_ID): New constant. (x_window_to_frame): Don't check hourglass_window. (w32_wnd_proc) : Handle hourglass_timer. (w32_wnd_proc) : Set pending hourglass cursor. (w32_wnd_proc) : Set the hourglass or current cursor. (w32_wnd_proc) : Set frame's current_cursor. Only change the cursor if hourglass is not active. (Fx_create_frame): Initialize frame's current_cursor. (hourglass_atimer): Remove. (hourglass_started): New function. (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. (show_hourglass): Adapt to w32, changing argument to frame. * w32term.h (struct w32_output): Remove hourglass_window. Add current_cursor. * eval.c (call_debugger, Fsignal): * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) (Fexecute_extended_command, cancel_hourglass_unwind): * minibuf.c (read_minibuf): * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM. diff -r 66248fc5b523 -r be40d8a9bcc1 src/w32term.h --- a/src/w32term.h Wed Mar 19 17:04:14 2008 +0000 +++ b/src/w32term.h Wed Mar 19 17:04:18 2008 +0000 @@ -361,13 +361,12 @@ Cursor hourglass_cursor; Cursor horizontal_drag_cursor; - /* Window whose cursor is hourglass_cursor. This window is - temporarily mapped to display an hourglass cursor. */ - Window hourglass_window; - /* Non-zero means hourglass cursor is currently displayed. */ unsigned hourglass_p : 1; + /* Non-hourglass cursor that is currently active. */ + Cursor current_cursor; + /* Flag to set when the window needs to be completely repainted. */ int needs_exposure;