]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not report move frame events for tooltip frames (Bug#38213)
authorMartin Rudalics <rudalics@gmx.at>
Sat, 16 Nov 2019 08:04:53 +0000 (09:04 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 16 Nov 2019 08:04:53 +0000 (09:04 +0100)
* src/w32term.c (w32_read_socket):
* src/xterm.c (handle_one_xevent): Do not report move frame events
for tooltip frames (Bug#38213).

src/w32term.c
src/xterm.c

index d0537c67e9a99f146a84c2e93cfab124f7d2802a..17bf408c2055c5e4e426f9380a882aba0aaa1b06 100644 (file)
@@ -5314,7 +5314,8 @@ w32_read_socket (struct terminal *terminal,
        case WM_MOVE:
          f = w32_window_to_frame (dpyinfo, msg.msg.hwnd);
 
-         if (f && FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P(f))
+         if (f && FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P(f)
+             && !FRAME_TOOLTIP_P (f))
            {
              w32_real_positions (f, &f->left_pos, &f->top_pos);
              inev.kind = MOVE_FRAME_EVENT;
index f7005804f02545a7a96af6b259b87e2d99feca46..d55bc3890d604db2c2d47a3c6441cd7e78d02c56 100644 (file)
@@ -9032,7 +9032,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                  unblock_input ();
                }
 
-             if (old_left != f->left_pos || old_top != f->top_pos)
+             if (!FRAME_TOOLTIP_P (f)
+                 && (old_left != f->left_pos || old_top != f->top_pos))
                {
                  inev.ie.kind = MOVE_FRAME_EVENT;
                  XSETFRAME (inev.ie.frame_or_window, f);