aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c20
2 files changed, 25 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b42c75ab75a..27662e950a2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12007-10-07 John Paul Wallington <jpw@pobox.com>
2
3 * xfns.c (x_create_tip_frame): Set the `display-type' frame
4 parameter before setting up faces.
5
12007-10-13 Eli Zaretskii <eliz@gnu.org> 62007-10-13 Eli Zaretskii <eliz@gnu.org>
2 7
3 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving 8 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
diff --git a/src/xfns.c b/src/xfns.c
index 13672736849..d1f35eee4e7 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4927,6 +4927,26 @@ x_create_tip_frame (dpyinfo, parms, text)
4927 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt), 4927 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt),
4928 Qnil)); 4928 Qnil));
4929 4929
4930 /* FIXME - can this be done in a similar way to normal frames?
4931 http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00641.html */
4932
4933 /* Set the `display-type' frame parameter before setting up faces. */
4934 {
4935 Lisp_Object disptype;
4936
4937 if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1)
4938 disptype = intern ("mono");
4939 else if (FRAME_X_DISPLAY_INFO (f)->visual->class == GrayScale ||
4940 FRAME_X_DISPLAY_INFO (f)->visual->class == StaticGray)
4941 disptype = intern ("grayscale");
4942 else
4943 disptype = intern ("color");
4944
4945 if (NILP (Fframe_parameter (frame, Qdisplay_type)))
4946 Fmodify_frame_parameters (frame, Fcons (Fcons (Qdisplay_type, disptype),
4947 Qnil));
4948 }
4949
4930 /* Set up faces after all frame parameters are known. This call 4950 /* Set up faces after all frame parameters are known. This call
4931 also merges in face attributes specified for new frames. 4951 also merges in face attributes specified for new frames.
4932 4952