From f15f9ddea1ee512d017b1abf132d648f999a07f6 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 5 Jun 2022 09:30:45 +0800 Subject: [PATCH] Adjust last change for GTK+ 2.x * src/xterm.c (x_tooltip_window_to_frame): Fix build on GTK 2.x. --- src/xterm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 3eb9ee21daa..57a3f73cac6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10318,12 +10318,21 @@ x_tooltip_window_to_frame (struct x_display_info *dpyinfo, else tooltip_window = NULL; +#ifdef HAVE_GTK3 if (tooltip_window && (gdk_x11_window_get_xid (tooltip_window) == wdesc)) { *unrelated_tooltip_p = true; break; } +#else + if (tooltip_window + && (GDK_WINDOW_XID (tooltip_window) == wdesc)) + { + *unrelated_tooltip_p = true; + break; + } +#endif #endif } -- 2.39.2