1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 06:50:23 -08:00

Don't check non-X frames for z order (Bug#31373)

* src/xfns.c (x_frame_list_z_order): Only use frames with
`output_method' set to `output_x_window'.
This commit is contained in:
Noam Postavsky 2018-05-06 10:07:25 -04:00
parent 7dc028e250
commit 1d9e66aea1

View file

@ -5300,12 +5300,16 @@ x_frame_list_z_order (Display* dpy, Window window)
Lisp_Object frame, tail; Lisp_Object frame, tail;
FOR_EACH_FRAME (tail, frame) FOR_EACH_FRAME (tail, frame)
/* With a reparenting window manager the parent_desc field {
usually specifies the topmost windows of our frames. struct frame *cf = XFRAME (frame);
Otherwise FRAME_OUTER_WINDOW should do. */ /* With a reparenting window manager the parent_desc
if (XFRAME (frame)->output_data.x->parent_desc == children[i] field usually specifies the topmost windows of our
|| FRAME_OUTER_WINDOW (XFRAME (frame)) == children[i]) frames. Otherwise FRAME_OUTER_WINDOW should do. */
frames = Fcons (frame, frames); if (FRAME_X_P (cf)
&& (cf->output_data.x->parent_desc == children[i]
|| FRAME_OUTER_WINDOW (cf) == children[i]))
frames = Fcons (frame, frames);
}
} }
if (children) XFree ((char *)children); if (children) XFree ((char *)children);