Mercurial > emacs
comparison src/w32term.c @ 41447:783d21cc62b9
(x_after_update_window_line): Doc fix.
(w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip frames.
<WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 24 Nov 2001 17:31:06 +0000 |
parents | 2043af2d023f |
children | 0c5ab6e27a8f |
comparison
equal
deleted
inserted
replaced
41446:4d04ea305201 | 41447:783d21cc62b9 |
---|---|
750 | 750 |
751 | 751 |
752 /* Draw truncation mark bitmaps, continuation mark bitmaps, overlay | 752 /* Draw truncation mark bitmaps, continuation mark bitmaps, overlay |
753 arrow bitmaps, or clear the fringes if no bitmaps are required | 753 arrow bitmaps, or clear the fringes if no bitmaps are required |
754 before DESIRED_ROW is made current. The window being updated is | 754 before DESIRED_ROW is made current. The window being updated is |
755 found in updated_window. This function It is called from | 755 found in updated_window. This function is called from |
756 update_window_line only if it is known that there are differences | 756 update_window_line only if it is known that there are differences |
757 between bitmaps to be drawn between current row and DESIRED_ROW. */ | 757 between bitmaps to be drawn between current row and DESIRED_ROW. */ |
758 | 758 |
759 static void | 759 static void |
760 x_after_update_window_line (desired_row) | 760 x_after_update_window_line (desired_row) |
8462 input_signal_count++; | 8462 input_signal_count++; |
8463 | 8463 |
8464 if (numchars <= 0) | 8464 if (numchars <= 0) |
8465 abort (); /* Don't think this happens. */ | 8465 abort (); /* Don't think this happens. */ |
8466 | 8466 |
8467 /* TODO: tooltips, tool-bars, ghostscript integration, mouse | 8467 /* TODO: tool-bars, ghostscript integration, mouse |
8468 cursors. */ | 8468 cursors. */ |
8469 while (get_next_msg (&msg, FALSE)) | 8469 while (get_next_msg (&msg, FALSE)) |
8470 { | 8470 { |
8471 switch (msg.msg.message) | 8471 switch (msg.msg.message) |
8472 { | 8472 { |
8787 | 8787 |
8788 check_visibility = 1; | 8788 check_visibility = 1; |
8789 break; | 8789 break; |
8790 | 8790 |
8791 case WM_SHOWWINDOW: | 8791 case WM_SHOWWINDOW: |
8792 /* wParam non-zero means Window is about to be shown, 0 means | |
8793 about to be hidden. */ | |
8794 /* Redo the mouse-highlight after the tooltip has gone. */ | |
8795 if (!msg.msg.wParam && msg.msg.hwnd == tip_window) | |
8796 { | |
8797 tip_window = NULL; | |
8798 redo_mouse_highlight (); | |
8799 } | |
8800 | |
8792 /* If window has been obscured or exposed by another window | 8801 /* If window has been obscured or exposed by another window |
8793 being maximised or minimised/restored, then recheck | 8802 being maximised or minimised/restored, then recheck |
8794 visibility of all frames. Direct changes to our own | 8803 visibility of all frames. Direct changes to our own |
8795 windows get handled by WM_SIZE. */ | 8804 windows get handled by WM_SIZE. */ |
8796 #if 0 | 8805 #if 0 |
9066 Lisp_Object tail, frame; | 9075 Lisp_Object tail, frame; |
9067 | 9076 |
9068 FOR_EACH_FRAME (tail, frame) | 9077 FOR_EACH_FRAME (tail, frame) |
9069 { | 9078 { |
9070 FRAME_PTR f = XFRAME (frame); | 9079 FRAME_PTR f = XFRAME (frame); |
9080 /* The tooltip has been drawn already. Avoid the | |
9081 SET_FRAME_GARBAGED below. */ | |
9082 if (f == XFRAME (tip_frame)) | |
9083 continue; | |
9084 | |
9071 /* Check "visible" frames and mark each as obscured or not. | 9085 /* Check "visible" frames and mark each as obscured or not. |
9072 Note that async_visible is nonzero for unobscured and | 9086 Note that async_visible is nonzero for unobscured and |
9073 obscured frames, but zero for hidden and iconified frames. */ | 9087 obscured frames, but zero for hidden and iconified frames. */ |
9074 if (FRAME_W32_P (f) && f->async_visible) | 9088 if (FRAME_W32_P (f) && f->async_visible) |
9075 { | 9089 { |