comparison src/event-msw.c @ 656:4035041996d8

[xemacs-hg @ 2001-09-08 09:12:08 by adrian] [PATCH] xemacs-21.5: Make iconify-emacs work again <n15mdthp.fsf@ecf.teradyne.com>
author adrian
date Sat, 08 Sep 2001 09:12:09 +0000
parents b39c14581166
children ce0b3f2eff35
comparison
equal deleted inserted replaced
655:53ebbbe68740 656:4035041996d8
181 in the thread upon exit. There are situations when a thread 181 in the thread upon exit. There are situations when a thread
182 remains blocked for a long time, much longer than the lstream 182 remains blocked for a long time, much longer than the lstream
183 exists. For example, "start notepad" command is issued from the 183 exists. For example, "start notepad" command is issued from the
184 shell, then the shell is closed by C-c C-d. Although the shell 184 shell, then the shell is closed by C-c C-d. Although the shell
185 process exits, its output pipe will not get closed until the 185 process exits, its output pipe will not get closed until the
186 notepad process exits also, because it inherits the pipe form the 186 notepad process exits also, because it inherits the pipe from the
187 shell. In this case, we abandon the thread, and let it live until 187 shell. In this case, we abandon the thread, and let it live until
188 all such processes exit. While struct ntpipe_slurp_stream is 188 all such processes exit. While struct ntpipe_slurp_stream is
189 deallocated in this case, ntpipe_slurp_stream_shared_data are not. */ 189 deallocated in this case, ntpipe_slurp_stream_shared_data are not. */
190 190
191 struct ntpipe_slurp_stream_shared_data 191 struct ntpipe_slurp_stream_shared_data
2622 FRAME_VISIBLE_P (frame) = 0; 2622 FRAME_VISIBLE_P (frame) = 0;
2623 FRAME_ICONIFIED_P (frame) = 1; 2623 FRAME_ICONIFIED_P (frame) = 1;
2624 } 2624 }
2625 else if (IsWindowVisible (hwnd)) 2625 else if (IsWindowVisible (hwnd))
2626 { 2626 {
2627 FRAME_VISIBLE_P (frame) = 1; 2627 /*
2628 APA: It's too early here to set the frame visible.
2629 Let's do this later, in WM_SIZE processing, after the
2630 magic XM_MAPFRAME event has been sent (just like 21.1
2631 did).
2632 */
2633 /* FRAME_VISIBLE_P (frame) = 1; */
2628 FRAME_ICONIFIED_P (frame) = 0; 2634 FRAME_ICONIFIED_P (frame) = 0;
2629 } 2635 }
2630 else 2636 else
2631 { 2637 {
2632 FRAME_VISIBLE_P (frame) = 0; 2638 FRAME_VISIBLE_P (frame) = 0;
2687 } 2693 }
2688 else 2694 else
2689 { 2695 {
2690 if (!msframe->sizing && !FRAME_VISIBLE_P (frame)) 2696 if (!msframe->sizing && !FRAME_VISIBLE_P (frame))
2691 mswindows_enqueue_magic_event (hwnd, XM_MAPFRAME); 2697 mswindows_enqueue_magic_event (hwnd, XM_MAPFRAME);
2698 /*
2699 APA: Now that the magic XM_MAPFRAME event has
2700 been sent we can mark the frame as visible (just
2701 like 21.1 did).
2702 */
2703 FRAME_VISIBLE_P (frame) = 1;
2692 2704
2693 if (!msframe->sizing || mswindows_dynamic_frame_resize) 2705 if (!msframe->sizing || mswindows_dynamic_frame_resize)
2694 redisplay (); 2706 redisplay ();
2695 } 2707 }
2696 } 2708 }