emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2f32333cff: Fix the no toolkit build.


From: Po Lu
Subject: master 2f32333cff: Fix the no toolkit build.
Date: Sun, 30 Jan 2022 21:38:03 -0500 (EST)

branch: master
commit 2f32333cff29b8ffe8bf0034af4a0d4b17fc32f0
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 ed56b07214..6716acc25b 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]