From: Po Lu Date: Wed, 16 Feb 2022 11:54:40 +0000 (+0800) Subject: Fix recent change in xwidget.c X-Git-Tag: emacs-29.0.90~2288 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e389da74d59c3ebc3555794844772e98d0fc4ace;p=emacs.git 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. --- 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, /* 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);