From e389da74d59c3ebc3555794844772e98d0fc4ace Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 16 Feb 2022 19:54:40 +0800 Subject: [PATCH] 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. --- src/xwidget.c | 6 ++---- 1 file 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, /* 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); -- 2.39.5