]> git.eshelyaron.com Git - emacs.git/commitdiff
Tool tips for menus did not show any text.
authorJan D <jan.h.d@swipnet.se>
Fri, 3 Apr 2015 12:24:44 +0000 (14:24 +0200)
committerJan D <jan.h.d@swipnet.se>
Fri, 3 Apr 2015 12:24:44 +0000 (14:24 +0200)
* src/xterm.c (x_update_begin): Don't create any surface for non-visible
tip frames, the geometry may be wrong.

src/ChangeLog
src/xterm.c

index e41da251ec68c86fbd851dbff1f5a333e3d223c4..f7941e0428084e6f33b1665db8207b8f20b45879 100644 (file)
@@ -2,6 +2,8 @@
 
        * xterm.c (handle_one_xevent): Always redraw tool tips on
        MapNotify.  Update tool tip frame sizes on ConfigureNotify.
+       (x_update_begin): Don't create any surface for non-visible
+       tip frames, the geometry may be wrong.
 
 2015-03-31  Eli Zaretskii  <eliz@gnu.org>
 
index 6bd09300c34551cec004e55335f612c54414a2e8..f1632f3141d28f682ed071a6156e794d12df81e8 100644 (file)
@@ -1038,6 +1038,10 @@ static void
 x_update_begin (struct frame *f)
 {
 #ifdef USE_CAIRO
+  if (! NILP (tip_frame) && XFRAME (tip_frame) == f
+      && ! FRAME_VISIBLE_P (f))
+    return;
+
   if (! FRAME_CR_SURFACE (f))
     {
       int width, height;