From: Po Lu Date: Mon, 31 Jan 2022 02:34:50 +0000 (+0800) Subject: Fix the no toolkit build. X-Git-Tag: emacs-29.0.90~2642 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f32333cff29b8ffe8bf0034af4a0d4b17fc32f0;p=emacs.git Fix the no toolkit build. * src/xfns.c (x_window): Use n_planes instead of CopyFromParent for depth. --- diff --git a/src/xfns.c b/src/xfns.c index ed56b072148..6716acc25b5 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3780,7 +3780,7 @@ x_window (struct frame *f) f->top_pos, FRAME_PIXEL_WIDTH (f), FRAME_PIXEL_HEIGHT (f), f->border_width, - CopyFromParent, /* depth */ + FRAME_DISPLAY_INFO (f)->n_planes, /* depth */ InputOutput, /* class */ FRAME_X_VISUAL (f), attribute_mask, &attributes);