Commit 89e09428 authored by Jason Rumney's avatar Jason Rumney

(w32_hide_hourglass): Handle case where frame

disappeared while hourglass was displayed. (Bug #2193)
parent c253eff0
2009-02-08 Jason Rumney <jasonr@gnu.org>
* w32fns.c (w32_hide_hourglass): Handle case where frame
disappeared while hourglass was displayed. (Bug #2193)
2009-02-07 Andreas Schwab <schwab@suse.de>
* unexelf.c (unexec): Fix error message.
......
......@@ -5279,9 +5279,18 @@ w32_hide_hourglass ()
{
struct frame *f = x_window_to_frame (&one_w32_display_info,
hourglass_hwnd);
if (f)
f->output_data.w32->hourglass_p = 0;
else
/* If frame was deleted, restore to selected frame's cursor. */
f = SELECTED_FRAME ();
if (FRAME_W32_P (f))
SetCursor (f->output_data.w32->current_cursor);
else
/* No cursors on non GUI frames - restore to stock arrow cursor. */
SetCursor (w32_load_cursor (IDC_ARROW));
f->output_data.w32->hourglass_p = 0;
SetCursor (f->output_data.w32->current_cursor);
hourglass_shown_p = 0;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment