diff options
| author | Martin Rudalics | 2019-03-04 10:11:53 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2019-03-04 10:11:53 +0100 |
| commit | a810a75aa2d0cd5f43ec4b733fdcafabbfe8c5c3 (patch) | |
| tree | 1fc14d1682958f204e8e0e8d514f230e22566650 /src/keyboard.c | |
| parent | 716ff449ef0ee87e7a102733d8c036bc8e037076 (diff) | |
| download | emacs-a810a75aa2d0cd5f43ec4b733fdcafabbfe8c5c3.tar.gz emacs-a810a75aa2d0cd5f43ec4b733fdcafabbfe8c5c3.zip | |
Fix minibuffer resizing with temporarily selected frames (Bug#34317)
* src/keyboard.c (command_loop_1): Resize echo area exactly
only if the echo area window is the minibuffer window of the
selected frame (Bug#34317).
* src/xdisp.c (x_consider_frame_title): Inhibit redisplay also
when restoring the selected window/frame to avoid that
resize_mini_window sizes back the minibuffer window of a
temporarily selected frame (Bug#34317).
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 1bde3a13ba5..760cd623f63 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1476,8 +1476,12 @@ command_loop_1 (void) | |||
| 1476 | safe_run_hooks (Qpost_command_hook); | 1476 | safe_run_hooks (Qpost_command_hook); |
| 1477 | 1477 | ||
| 1478 | /* If displaying a message, resize the echo area window to fit | 1478 | /* If displaying a message, resize the echo area window to fit |
| 1479 | that message's size exactly. */ | 1479 | that message's size exactly. Do this only if the echo area |
| 1480 | if (!NILP (echo_area_buffer[0])) | 1480 | window is the minibuffer window of the selected frame. See |
| 1481 | Bug#34317. */ | ||
| 1482 | if (!NILP (echo_area_buffer[0]) | ||
| 1483 | && (EQ (echo_area_window, | ||
| 1484 | FRAME_MINIBUF_WINDOW (XFRAME (selected_frame))))) | ||
| 1481 | resize_echo_area_exactly (); | 1485 | resize_echo_area_exactly (); |
| 1482 | 1486 | ||
| 1483 | /* If there are warnings waiting, process them. */ | 1487 | /* If there are warnings waiting, process them. */ |