diff options
| author | Glenn Morris | 2007-10-14 02:46:53 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-14 02:46:53 +0000 |
| commit | 35fdaa62d7fd33543b1641ca7276bd1abdbf9a50 (patch) | |
| tree | b85dcc6f2debfec04d0bbe2204d112f2e284bf9e /src/xfns.c | |
| parent | ee46ec8e40dc2ab5107c57a9bbc358455f8c0bad (diff) | |
| download | emacs-35fdaa62d7fd33543b1641ca7276bd1abdbf9a50.tar.gz emacs-35fdaa62d7fd33543b1641ca7276bd1abdbf9a50.zip | |
John Paul Wallington <jpw at pobox.com>
(x_create_tip_frame): Set the `display-type' frame parameter before
setting up faces.
Diffstat (limited to 'src/xfns.c')
| -rw-r--r-- | src/xfns.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 764cbbafa77..e3ce2220e73 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -4947,6 +4947,23 @@ x_create_tip_frame (dpyinfo, parms, text) | |||
| 4947 | Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt), | 4947 | Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt), |
| 4948 | Qnil)); | 4948 | Qnil)); |
| 4949 | 4949 | ||
| 4950 | /* Set the `display-type' frame parameter before setting up faces. */ | ||
| 4951 | { | ||
| 4952 | Lisp_Object disptype; | ||
| 4953 | |||
| 4954 | if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1) | ||
| 4955 | disptype = intern ("mono"); | ||
| 4956 | else if (FRAME_X_DISPLAY_INFO (f)->visual->class == GrayScale || | ||
| 4957 | FRAME_X_DISPLAY_INFO (f)->visual->class == StaticGray) | ||
| 4958 | disptype = intern ("grayscale"); | ||
| 4959 | else | ||
| 4960 | disptype = intern ("color"); | ||
| 4961 | |||
| 4962 | if (NILP (Fframe_parameter (frame, Qdisplay_type))) | ||
| 4963 | Fmodify_frame_parameters (frame, Fcons (Fcons (Qdisplay_type, disptype), | ||
| 4964 | Qnil)); | ||
| 4965 | } | ||
| 4966 | |||
| 4950 | /* Set up faces after all frame parameters are known. This call | 4967 | /* Set up faces after all frame parameters are known. This call |
| 4951 | also merges in face attributes specified for new frames. | 4968 | also merges in face attributes specified for new frames. |
| 4952 | 4969 | ||