Mercurial > emacs
comparison src/w32fns.c @ 101901:3447d99a0529
(w32_hide_hourglass): Handle case where frame
disappeared while hourglass was displayed. (Bug #2193)
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 08 Feb 2009 15:34:38 +0000 |
parents | dd95cb42c0aa |
children | f978553ef98f |
comparison
equal
deleted
inserted
replaced
101900:f0a6af6c77e8 | 101901:3447d99a0529 |
---|---|
5277 { | 5277 { |
5278 if (hourglass_shown_p) | 5278 if (hourglass_shown_p) |
5279 { | 5279 { |
5280 struct frame *f = x_window_to_frame (&one_w32_display_info, | 5280 struct frame *f = x_window_to_frame (&one_w32_display_info, |
5281 hourglass_hwnd); | 5281 hourglass_hwnd); |
5282 | 5282 if (f) |
5283 f->output_data.w32->hourglass_p = 0; | 5283 f->output_data.w32->hourglass_p = 0; |
5284 SetCursor (f->output_data.w32->current_cursor); | 5284 else |
5285 /* If frame was deleted, restore to selected frame's cursor. */ | |
5286 f = SELECTED_FRAME (); | |
5287 | |
5288 if (FRAME_W32_P (f)) | |
5289 SetCursor (f->output_data.w32->current_cursor); | |
5290 else | |
5291 /* No cursors on non GUI frames - restore to stock arrow cursor. */ | |
5292 SetCursor (w32_load_cursor (IDC_ARROW)); | |
5293 | |
5285 hourglass_shown_p = 0; | 5294 hourglass_shown_p = 0; |
5286 } | 5295 } |
5287 } | 5296 } |
5288 | 5297 |
5289 | 5298 |