From 2f32333cff29b8ffe8bf0034af4a0d4b17fc32f0 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 31 Jan 2022 10:34:50 +0800 Subject: [PATCH] Fix the no toolkit build. * src/xfns.c (x_window): Use n_planes instead of CopyFromParent for depth. --- src/xfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5