aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorJohn Wiegley2016-07-12 15:27:25 -0700
committerJohn Wiegley2016-07-12 15:27:25 -0700
commit54b7eb0dee2397f1430e81b7356f8efb19946ba0 (patch)
treea463da12f08f32dc78beb2f99a37eb1951f51a43 /src/w32term.c
parent9c8c3a5478db6ff4b245e9128cbf24bd722ab1d6 (diff)
downloademacs-54b7eb0dee2397f1430e81b7356f8efb19946ba0.tar.gz
emacs-54b7eb0dee2397f1430e81b7356f8efb19946ba0.zip
Revert "Cleanup tooltips"
This reverts commit 20038f8ab75dd1551412a43cd58520c483c22921. I am reverting this change because it was applied without prior discussion on emacs-devel, and has been found to break the NS port. It needs more testing and review before it should be applied here.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 8c2fdaf0f59..5a11e2a871a 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -5024,10 +5024,11 @@ w32_read_socket (struct terminal *terminal,
5024 /* wParam non-zero means Window is about to be shown, 0 means 5024 /* wParam non-zero means Window is about to be shown, 0 means
5025 about to be hidden. */ 5025 about to be hidden. */
5026 /* Redo the mouse-highlight after the tooltip has gone. */ 5026 /* Redo the mouse-highlight after the tooltip has gone. */
5027 if (!msg.msg.wParam 5027 if (!msg.msg.wParam && msg.msg.hwnd == tip_window)
5028 && dpyinfo->w32_tooltip_frame 5028 {
5029 && FRAME_W32_WINDOW (dpyinfo->w32_tooltip_frame) == msg.msg.hwnd) 5029 tip_window = NULL;
5030 x_redo_mouse_highlight (dpyinfo); 5030 x_redo_mouse_highlight (dpyinfo);
5031 }
5031 5032
5032 /* If window has been obscured or exposed by another window 5033 /* If window has been obscured or exposed by another window
5033 being maximized or minimized/restored, then recheck 5034 being maximized or minimized/restored, then recheck
@@ -5393,7 +5394,7 @@ w32_read_socket (struct terminal *terminal,
5393 struct frame *f = XFRAME (frame); 5394 struct frame *f = XFRAME (frame);
5394 /* The tooltip has been drawn already. Avoid the 5395 /* The tooltip has been drawn already. Avoid the
5395 SET_FRAME_GARBAGED below. */ 5396 SET_FRAME_GARBAGED below. */
5396 if (FRAME_TOOLTIP_P (f)) 5397 if (EQ (frame, tip_frame))
5397 continue; 5398 continue;
5398 5399
5399 /* Check "visible" frames and mark each as obscured or not. 5400 /* Check "visible" frames and mark each as obscured or not.
@@ -5870,7 +5871,7 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
5870 /* Don't change the size of a tip frame; there's no point in 5871 /* Don't change the size of a tip frame; there's no point in
5871 doing it because it's done in Fx_show_tip, and it leads to 5872 doing it because it's done in Fx_show_tip, and it leads to
5872 problems because the tip frame has no widget. */ 5873 problems because the tip frame has no widget. */
5873 if (!FRAME_TOOLTIP_P (f)) 5874 if (NILP (tip_frame) || XFRAME (tip_frame) != f)
5874 adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), 5875 adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
5875 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 3, 5876 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 3,
5876 false, Qfont); 5877 false, Qfont);
@@ -6568,8 +6569,6 @@ x_free_frame_resources (struct frame *f)
6568 dpyinfo->w32_focus_event_frame = 0; 6569 dpyinfo->w32_focus_event_frame = 0;
6569 if (f == dpyinfo->x_highlight_frame) 6570 if (f == dpyinfo->x_highlight_frame)
6570 dpyinfo->x_highlight_frame = 0; 6571 dpyinfo->x_highlight_frame = 0;
6571 if (f == dpyinfo->w32_tooltip_frame)
6572 dpyinfo->w32_tooltip_frame = 0;
6573 if (f == hlinfo->mouse_face_mouse_frame) 6572 if (f == hlinfo->mouse_face_mouse_frame)
6574 reset_mouse_highlight (hlinfo); 6573 reset_mouse_highlight (hlinfo);
6575 6574