diff options
| author | Martin Rudalics | 2019-11-16 09:04:53 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2019-11-16 09:04:53 +0100 |
| commit | d8f03d82760107115bcc63a461b78a53fdd2882b (patch) | |
| tree | 2acfdd017f6c0039b19fa87226517ca631831480 /src | |
| parent | d03915650e110b0241d44f8283d665506455aed6 (diff) | |
| download | emacs-d8f03d82760107115bcc63a461b78a53fdd2882b.tar.gz emacs-d8f03d82760107115bcc63a461b78a53fdd2882b.zip | |
Do not report move frame events for tooltip frames (Bug#38213)
* src/w32term.c (w32_read_socket):
* src/xterm.c (handle_one_xevent): Do not report move frame events
for tooltip frames (Bug#38213).
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 3 | ||||
| -rw-r--r-- | src/xterm.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c index d0537c67e9a..17bf408c205 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -5314,7 +5314,8 @@ w32_read_socket (struct terminal *terminal, | |||
| 5314 | case WM_MOVE: | 5314 | case WM_MOVE: |
| 5315 | f = w32_window_to_frame (dpyinfo, msg.msg.hwnd); | 5315 | f = w32_window_to_frame (dpyinfo, msg.msg.hwnd); |
| 5316 | 5316 | ||
| 5317 | if (f && FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P(f)) | 5317 | if (f && FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P(f) |
| 5318 | && !FRAME_TOOLTIP_P (f)) | ||
| 5318 | { | 5319 | { |
| 5319 | w32_real_positions (f, &f->left_pos, &f->top_pos); | 5320 | w32_real_positions (f, &f->left_pos, &f->top_pos); |
| 5320 | inev.kind = MOVE_FRAME_EVENT; | 5321 | inev.kind = MOVE_FRAME_EVENT; |
diff --git a/src/xterm.c b/src/xterm.c index f7005804f02..d55bc3890d6 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9032,7 +9032,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 9032 | unblock_input (); | 9032 | unblock_input (); |
| 9033 | } | 9033 | } |
| 9034 | 9034 | ||
| 9035 | if (old_left != f->left_pos || old_top != f->top_pos) | 9035 | if (!FRAME_TOOLTIP_P (f) |
| 9036 | && (old_left != f->left_pos || old_top != f->top_pos)) | ||
| 9036 | { | 9037 | { |
| 9037 | inev.ie.kind = MOVE_FRAME_EVENT; | 9038 | inev.ie.kind = MOVE_FRAME_EVENT; |
| 9038 | XSETFRAME (inev.ie.frame_or_window, f); | 9039 | XSETFRAME (inev.ie.frame_or_window, f); |