]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix creation of tooltip frames with a stippled background
authorPo Lu <luangruo@yahoo.com>
Wed, 9 Feb 2022 01:10:50 +0000 (09:10 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 9 Feb 2022 01:10:50 +0000 (09:10 +0800)
* src/xfns.c (x_create_tip_frame): Init faces after creating the
drawable, since that's needed for loading stipple files.

src/xfns.c

index 2fd9ad6b054cae45ccf4b3f040ebda175ca8e099..79df70e73c209fde99fdeb24bf9561794d79c652 100644 (file)
@@ -7285,19 +7285,6 @@ x_create_tip_frame (struct x_display_info *dpyinfo, Lisp_Object parms)
   gui_default_parameter (f, parms, Qno_special_glyphs, Qnil,
                          NULL, NULL, RES_TYPE_BOOLEAN);
 
-  /* Init faces before gui_default_parameter is called for the
-     scroll-bar-width parameter because otherwise we end up in
-     init_iterator with a null face cache, which should not happen.  */
-  init_frame_faces (f);
-
-  f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window;
-
-  gui_default_parameter (f, parms, Qinhibit_double_buffering, Qnil,
-                         "inhibitDoubleBuffering", "InhibitDoubleBuffering",
-                         RES_TYPE_BOOLEAN);
-
-  gui_figure_window_size (f, parms, false, false);
-
   {
 #ifndef USE_XCB
     XSetWindowAttributes attrs;
@@ -7389,6 +7376,19 @@ x_create_tip_frame (struct x_display_info *dpyinfo, Lisp_Object parms)
 #endif
   }
 
+  /* Init faces before gui_default_parameter is called for the
+     scroll-bar-width parameter because otherwise we end up in
+     init_iterator with a null face cache, which should not happen.  */
+  init_frame_faces (f);
+
+  gui_default_parameter (f, parms, Qinhibit_double_buffering, Qnil,
+                         "inhibitDoubleBuffering", "InhibitDoubleBuffering",
+                         RES_TYPE_BOOLEAN);
+
+  gui_figure_window_size (f, parms, false, false);
+
+  f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window;
+
   x_make_gc (f);
 
   gui_default_parameter (f, parms, Qauto_raise, Qnil,