Fix the --without-x build

* src/frame.c (Ficonify_frame) [HAVE_WINDOW_SYSTEM]: Use
frame_parent only in GUI builds to avoid compilation errors in
--without-x builds.  (Bug#28611)
This commit is contained in:
Eli Zaretskii 2017-10-02 21:35:51 +03:00
parent b69bcf3452
commit d09ac15005

View file

@ -2542,6 +2542,7 @@ for how to proceed. */)
(Lisp_Object frame)
{
struct frame *f = decode_live_frame (frame);
#ifdef HAVE_WINDOW_SYSTEM
Lisp_Object parent = f->parent_frame;
if (!NILP (parent))
@ -2562,6 +2563,7 @@ for how to proceed. */)
return Qnil;
}
}
#endif /* HAVE_WINDOW_SYSTEM */
/* Don't allow minibuf_window to remain on an iconified frame. */
check_minibuf_window (frame, EQ (minibuf_window, selected_window));