From 442a3a967099dbb69724c4e0955c80d52cb76e42 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Fri, 24 Mar 2006 15:24:05 +0000 Subject: [PATCH] (w32_read_socket): Don't let key-press clear mouse face on in toolbar window if mouse-highlight is an integer. --- src/w32term.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index 7d530e7ea65..f0ef42f798b 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -4260,7 +4260,8 @@ w32_read_socket (sd, expected, hold_quit) if (f && !f->iconified) { - if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) + if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) + && !EQ (f->tool_bar_window, dpyinfo->mouse_face_window)) { clear_mouse_face (dpyinfo); dpyinfo->mouse_face_hidden = 1; @@ -4283,7 +4284,8 @@ w32_read_socket (sd, expected, hold_quit) if (f && !f->iconified) { - if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) + if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) + && !EQ (f->tool_bar_window, dpyinfo->mouse_face_window)) { clear_mouse_face (dpyinfo); dpyinfo->mouse_face_hidden = 1; -- 2.39.2