]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix recent change in xwidget.c
authorPo Lu <luangruo@yahoo.com>
Wed, 16 Feb 2022 11:54:40 +0000 (19:54 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 16 Feb 2022 11:55:11 +0000 (19:55 +0800)
* src/xwidget.c (xwidget_init_view): Don't assume ttip_widget
is NULL if tooltips have not been initialized.

src/xwidget.c

index bfee80ef3ed026fd0efa0b2006cbbb1642d5ab2e..9fbf6678ae8d76e5f7b9db5b81897228c945b9bc 100644 (file)
@@ -1738,11 +1738,9 @@ xw_maybe_synthesize_crossing (struct xwidget_view *view,
   /* Work around a silly bug in WebKitGTK+ that tries to make tooltip
      windows transient for our offscreen window.  */
   int tooltip_width, tooltip_height;
-  struct x_output *output = FRAME_X_OUTPUT (view->frame);
 
-  if (!output->ttip_widget)
-    xg_prepare_tooltip (view->frame, dummy_tooltip_string,
-                       &tooltip_width, &tooltip_height);
+  xg_prepare_tooltip (view->frame, dummy_tooltip_string,
+                     &tooltip_width, &tooltip_height);
 #endif
 
   toplevel = gtk_widget_get_window (XXWIDGET (view->model)->widgetwindow_osr);