]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve earlier changes to xterm.c
authorPo Lu <luangruo@yahoo.com>
Mon, 19 Dec 2022 05:40:54 +0000 (13:40 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 19 Dec 2022 05:41:08 +0000 (13:41 +0800)
* etc/PROBLEMS: Update for renamed variable.
* src/xterm.c (x_make_frame_visible): Better respect
`x-lax-frame-positioning'.

etc/PROBLEMS
src/xterm.c

index b6d2d63660c51aad172e2e3adb3546d249994327..f1140499859852ee167862ead16586b509fd454e 100644 (file)
@@ -1725,7 +1725,7 @@ which can be carried out at the same time:
 
 8) If creating or resizing frames is slow, turn off
    `frame-resize-pixelwise' (this will not take effect until you
-   create a new frame); then, enable `x-lax-frame-geometry'.  This
+   create a new frame); then, enable `x-lax-frame-positioning'.  This
    means frame placement will be less accurate, but makes frame
    creation, movement, and resize visibly faster.
 
index a120eae26cb0c3e0b94c8a08d7deb3fa68c00789..a1acfa80744e4f168cd7407c7e669c3cc008fe6c 100644 (file)
@@ -28329,6 +28329,7 @@ x_make_frame_visible (struct frame *f)
        && !FRAME_ICONIFIED_P (f)
        && !FRAME_X_EMBEDDED_P (f)
        && !FRAME_PARENT_FRAME (f)
+       && NILP (Vx_lax_frame_positioning)
        && f->win_gravity == NorthWestGravity
        && previously_visible)
       {
@@ -28357,7 +28358,8 @@ x_make_frame_visible (struct frame *f)
       }
 
     /* Try to wait for a MapNotify event (that is what tells us when a
-       frame becomes visible).  */
+       frame becomes visible).  Unless `x-lax-frame-positioning' is
+       non-nil: there, that is a little slow.  */
 
 #ifdef CYGWIN
     /* On Cygwin, which uses input polling, we need to force input to
@@ -28375,7 +28377,8 @@ x_make_frame_visible (struct frame *f)
     poll_suppress_count = old_poll_suppress_count;
 #endif
 
-    if (!FRAME_VISIBLE_P (f))
+    if (!FRAME_VISIBLE_P (f)
+       && NILP (Vx_lax_frame_positioning))
       {
        if (CONSP (frame_size_history))
          frame_size_history_plain