aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-02-16 19:54:40 +0800
committerPo Lu2022-02-16 19:55:11 +0800
commite389da74d59c3ebc3555794844772e98d0fc4ace (patch)
tree68eca941b4ed48409bd21441c8be0e5588e2f847 /src
parent3b7d55a8013914b6707211d148a6e878ca118ad9 (diff)
downloademacs-e389da74d59c3ebc3555794844772e98d0fc4ace.tar.gz
emacs-e389da74d59c3ebc3555794844772e98d0fc4ace.zip
Fix recent change in xwidget.c
* src/xwidget.c (xwidget_init_view): Don't assume ttip_widget is NULL if tooltips have not been initialized.
Diffstat (limited to 'src')
-rw-r--r--src/xwidget.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index bfee80ef3ed..9fbf6678ae8 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -1738,11 +1738,9 @@ xw_maybe_synthesize_crossing (struct xwidget_view *view,
1738 /* Work around a silly bug in WebKitGTK+ that tries to make tooltip 1738 /* Work around a silly bug in WebKitGTK+ that tries to make tooltip
1739 windows transient for our offscreen window. */ 1739 windows transient for our offscreen window. */
1740 int tooltip_width, tooltip_height; 1740 int tooltip_width, tooltip_height;
1741 struct x_output *output = FRAME_X_OUTPUT (view->frame);
1742 1741
1743 if (!output->ttip_widget) 1742 xg_prepare_tooltip (view->frame, dummy_tooltip_string,
1744 xg_prepare_tooltip (view->frame, dummy_tooltip_string, 1743 &tooltip_width, &tooltip_height);
1745 &tooltip_width, &tooltip_height);
1746#endif 1744#endif
1747 1745
1748 toplevel = gtk_widget_get_window (XXWIDGET (view->model)->widgetwindow_osr); 1746 toplevel = gtk_widget_get_window (XXWIDGET (view->model)->widgetwindow_osr);