# HG changeset patch # User Jason Rumney # Date 1205946151 0 # Node ID 8bb58b63a5fd32326c0cbede2e5a83b5c7b734bc # Parent d94ac0f6a006491f92d5090ae5fdd3b92cd5536a * 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 d94ac0f6a006 -r 8bb58b63a5fd src/eval.c --- a/src/eval.c Wed Mar 19 17:02:22 2008 +0000 +++ b/src/eval.c Wed Mar 19 17:02:31 2008 +0000 @@ -283,7 +283,7 @@ if (SPECPDL_INDEX () + 100 > max_specpdl_size) max_specpdl_size = SPECPDL_INDEX () + 100; -#ifdef HAVE_X_WINDOWS +#ifdef HAVE_WINDOW_SYSTEM if (display_hourglass_p) cancel_hourglass (); #endif @@ -1640,7 +1640,7 @@ #if 0 /* rms: I don't know why this was here, but it is surely wrong for an error that is handled. */ -#ifdef HAVE_X_WINDOWS +#ifdef HAVE_WINDOW_SYSTEM if (display_hourglass_p) cancel_hourglass (); #endif