]> git.eshelyaron.com Git - emacs.git/commitdiff
Adjust last change for GTK+ 2.x
authorPo Lu <luangruo@yahoo.com>
Sun, 5 Jun 2022 01:30:45 +0000 (09:30 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 5 Jun 2022 01:30:45 +0000 (09:30 +0800)
* src/xterm.c (x_tooltip_window_to_frame): Fix build on GTK 2.x.

src/xterm.c

index 3eb9ee21daa82423bca6ee66d6c89beffbb93e2c..57a3f73cac691933894a233efcc8d6b847b2a733 100644 (file)
@@ -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
     }