diff options
author | Martin Rudalics <rudalics@gmx.at> | 2021-05-12 09:44:02 +0200 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2021-05-12 09:44:02 +0200 |
commit | b41f39d22cdb921fe88311f4fd113cbb9c2f0c76 (patch) | |
tree | 6bdb2ec7ead4dace5a00914a12b2b90e3a7921f9 /src/w32fns.c | |
parent | 47070ed39eda524d334e5f82dc7f4a50b8d3252c (diff) | |
download | emacs-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/w32fns.c')
-rw-r--r-- | src/w32fns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 66baeaecbdb..e5edd62abbc 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -6107,6 +6107,8 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, if (!NILP (visibility)) w32_make_frame_visible (f); + else + f->was_invisible = true; } store_frame_param (f, Qvisibility, visibility); |