diff options
| author | Po Lu | 2022-12-23 18:05:44 +0800 |
|---|---|---|
| committer | Po Lu | 2022-12-23 18:22:54 +0800 |
| commit | 6cf0784a0d6d1fc58a200aa8f8e14cef612cd68b (patch) | |
| tree | 81b9400ee56f453a01945686e09a0ecae131e52d /src | |
| parent | dcc564415252c97f92c9a3afe306d515b0f0fd8c (diff) | |
| download | emacs-6cf0784a0d6d1fc58a200aa8f8e14cef612cd68b.tar.gz emacs-6cf0784a0d6d1fc58a200aa8f8e14cef612cd68b.zip | |
Speed up completion plugins over slow networks
* src/xterm.c (x_make_frame_invisible): Do not sync if
`x-lax-frame-positioning' is enabled.
(syms_of_xterm): Update doc string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index 5947145ce06..c2bb1e2afe8 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -28471,7 +28471,10 @@ x_make_frame_invisible (struct frame *f) | |||
| 28471 | error ("Can't notify window manager of window withdrawal"); | 28471 | error ("Can't notify window manager of window withdrawal"); |
| 28472 | } | 28472 | } |
| 28473 | 28473 | ||
| 28474 | XSync (FRAME_X_DISPLAY (f), False); | 28474 | /* Don't perform the synchronization if the network connection is |
| 28475 | slow, and the user says it is unwanted. */ | ||
| 28476 | if (NILP (Vx_lax_frame_positioning)) | ||
| 28477 | XSync (FRAME_X_DISPLAY (f), False); | ||
| 28475 | 28478 | ||
| 28476 | /* We can't distinguish this from iconification | 28479 | /* We can't distinguish this from iconification |
| 28477 | just by the event that we get from the server. | 28480 | just by the event that we get from the server. |
| @@ -28482,8 +28485,7 @@ x_make_frame_invisible (struct frame *f) | |||
| 28482 | SET_FRAME_ICONIFIED (f, false); | 28485 | SET_FRAME_ICONIFIED (f, false); |
| 28483 | 28486 | ||
| 28484 | if (CONSP (frame_size_history)) | 28487 | if (CONSP (frame_size_history)) |
| 28485 | frame_size_history_plain | 28488 | frame_size_history_plain (f, build_string ("x_make_frame_invisible")); |
| 28486 | (f, build_string ("x_make_frame_invisible")); | ||
| 28487 | 28489 | ||
| 28488 | unblock_input (); | 28490 | unblock_input (); |
| 28489 | } | 28491 | } |
| @@ -32010,6 +32012,7 @@ too slow, which is usually true when the X server is located over a | |||
| 32010 | network connection with high latency. Doing so will make frame | 32012 | network connection with high latency. Doing so will make frame |
| 32011 | creation and placement faster at the cost of reducing the accuracy of | 32013 | creation and placement faster at the cost of reducing the accuracy of |
| 32012 | frame placement via frame parameters, `set-frame-position', and | 32014 | frame placement via frame parameters, `set-frame-position', and |
| 32013 | `set-frame-size'. */); | 32015 | `set-frame-size', along with the actual state of a frame after |
| 32016 | `x_make_frame_invisible'. */); | ||
| 32014 | Vx_lax_frame_positioning = Qnil; | 32017 | Vx_lax_frame_positioning = Qnil; |
| 32015 | } | 32018 | } |