1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

Fix the no toolkit build.

* src/xfns.c (x_window): Use n_planes instead of CopyFromParent
for depth.
This commit is contained in:
Po Lu 2022-01-31 10:34:50 +08:00
parent 7b13737055
commit 2f32333cff

View 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);