]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the no toolkit build.
authorPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 02:34:50 +0000 (10:34 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 02:37:49 +0000 (10:37 +0800)
* src/xfns.c (x_window): Use n_planes instead of CopyFromParent
for depth.

src/xfns.c

index ed56b072148488640b37d503b634cb2da1e2dbd0..6716acc25b5d34d95fde6a53992c7e42b2d99019 100644 (file)
@@ -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);