aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-06-23 06:12:11 +0000
committerGerd Moellmann2000-06-23 06:12:11 +0000
commit61d461a89aa053fad84d65f0a00e9b25956d16fe (patch)
treee38cb0c075098a9bac68717a8dd2a3909673b8be /src
parentf6478c6609a179e023083c1bee8d134469423447 (diff)
downloademacs-61d461a89aa053fad84d65f0a00e9b25956d16fe.tar.gz
emacs-61d461a89aa053fad84d65f0a00e9b25956d16fe.zip
(x_create_tip_frame): Initialize frame's colors like
in x_create_frame.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 3136c764bc4..435de7e658f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -9575,6 +9575,8 @@ x_create_tip_frame (dpyinfo, parms)
9575 bzero (f->output_data.x, sizeof (struct x_output)); 9575 bzero (f->output_data.x, sizeof (struct x_output));
9576 f->output_data.x->icon_bitmap = -1; 9576 f->output_data.x->icon_bitmap = -1;
9577 f->output_data.x->fontset = -1; 9577 f->output_data.x->fontset = -1;
9578 f->output_data.x->scroll_bar_foreground_pixel = -1;
9579 f->output_data.x->scroll_bar_background_pixel = -1;
9578 f->icon_name = Qnil; 9580 f->icon_name = Qnil;
9579 FRAME_X_DISPLAY_INFO (f) = dpyinfo; 9581 FRAME_X_DISPLAY_INFO (f) = dpyinfo;
9580#ifdef MULTI_KBOARD 9582#ifdef MULTI_KBOARD
@@ -9583,6 +9585,29 @@ x_create_tip_frame (dpyinfo, parms)
9583 f->output_data.x->parent_desc = FRAME_X_DISPLAY_INFO (f)->root_window; 9585 f->output_data.x->parent_desc = FRAME_X_DISPLAY_INFO (f)->root_window;
9584 f->output_data.x->explicit_parent = 0; 9586 f->output_data.x->explicit_parent = 0;
9585 9587
9588 /* These colors will be set anyway later, but it's important
9589 to get the color reference counts right, so initialize them! */
9590 {
9591 Lisp_Object black;
9592 struct gcpro gcpro1;
9593
9594 black = build_string ("black");
9595 GCPRO1 (black);
9596 f->output_data.x->foreground_pixel
9597 = x_decode_color (f, black, BLACK_PIX_DEFAULT (f));
9598 f->output_data.x->background_pixel
9599 = x_decode_color (f, black, BLACK_PIX_DEFAULT (f));
9600 f->output_data.x->cursor_pixel
9601 = x_decode_color (f, black, BLACK_PIX_DEFAULT (f));
9602 f->output_data.x->cursor_foreground_pixel
9603 = x_decode_color (f, black, BLACK_PIX_DEFAULT (f));
9604 f->output_data.x->border_pixel
9605 = x_decode_color (f, black, BLACK_PIX_DEFAULT (f));
9606 f->output_data.x->mouse_pixel
9607 = x_decode_color (f, black, BLACK_PIX_DEFAULT (f));
9608 UNGCPRO;
9609 }
9610
9586 /* Set the name; the functions to which we pass f expect the name to 9611 /* Set the name; the functions to which we pass f expect the name to
9587 be set. */ 9612 be set. */
9588 if (EQ (name, Qunbound) || NILP (name)) 9613 if (EQ (name, Qunbound) || NILP (name))