[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8b0e9f44b7: Fix Emacs tooltips on PGTK

From: Po Lu
Subject: master 8b0e9f44b7: Fix Emacs tooltips on PGTK
Date: Fri, 24 Dec 2021 19:29:53 -0500 (EST)

branch: master
commit 8b0e9f44b757ead61537fe213fe8546af911cb54
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix Emacs tooltips on PGTK
    * src/pgtkfns.c (x_create_tip_frame): Don't set cursor and
    show window.
    (Fx_show_tip): Set cursor and show window.
 src/pgtkfns.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index a756bd4284..c782efe395 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -2913,9 +2913,6 @@ x_create_tip_frame (struct pgtk_display_info *dpyinfo, 
Lisp_Object parms, struct
   gtk_window_set_decorated (GTK_WINDOW (tip_window), FALSE);
   gtk_window_set_type_hint (GTK_WINDOW (tip_window), 
   f->output_data.pgtk->current_cursor = f->output_data.pgtk->text_cursor;
-  gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f));
-  gdk_window_set_cursor (gtk_widget_get_window (FRAME_GTK_OUTER_WIDGET (f)),
-                        f->output_data.pgtk->current_cursor);
 #if 0
   x_make_gc (f);
@@ -3451,6 +3448,11 @@ Text larger than the specified size is clipped.  */)
   block_input ();
   gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), width, 
   gtk_window_move (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), root_x, 
+  gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (tip_f));
+  SET_FRAME_VISIBLE (tip_f, 1);
+  gdk_window_set_cursor (gtk_widget_get_window (FRAME_GTK_OUTER_WIDGET 
+                        f->output_data.pgtk->current_cursor);
   unblock_input ();
   pgtk_cr_update_surface_desired_size (tip_f, width, height, false);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]