summaryrefslogtreecommitdiff
path: root/src/nsfns.m
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2021-05-12 09:44:02 +0200
committerMartin Rudalics <rudalics@gmx.at>2021-05-12 09:44:02 +0200
commitb41f39d22cdb921fe88311f4fd113cbb9c2f0c76 (patch)
tree6bdb2ec7ead4dace5a00914a12b2b90e3a7921f9 /src/nsfns.m
parent47070ed39eda524d334e5f82dc7f4a50b8d3252c (diff)
downloademacs-b41f39d22cdb921fe88311f4fd113cbb9c2f0c76.tar.gz
Handle Bug#24526 without breaking Emacs on tiling WMs (Bug#48268)
Since tiling window managers may react allergically to resize requests immediately following MapNotify events on X, make sure that such requests are issued only when a new frame should not become visible and a size has been explicitly requested for it. * lisp/faces.el (x-create-frame-with-faces): Mark frame as 'was-invisible' if it should be initially invisible or iconified and has its size specified explicitly. * src/frame.c (make_frame): Initialize new frame's was_invisible flag. (Fframe__set_was_invisible): New internal function. * src/frame.h (struct frame): Specify size of new_size_p slot. New flag was_invisible. * src/w32fns.c (Fx_create_frame) * src/nsfns.m (Fx_create_frame) * src/xfns.c (Fx_create_frame): Set new frame's was_invisible flag. * src/xterm.c (handle_one_xevent): Call xg_frame_set_char_size after a PropertyNotify or MapNotify event only if F's was_invisible flag was set.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index 1f281f75fd4..d14f7b51eaf 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1404,6 +1404,7 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame,
else
{
/* Must have been Qnil. */
+ f->was_invisible = true;
}
}