]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crashes in x_tooltip_window_to_frame on GTK
authorPo Lu <luangruo@yahoo.com>
Fri, 10 Jun 2022 01:28:45 +0000 (09:28 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 10 Jun 2022 01:28:45 +0000 (09:28 +0800)
* src/xterm.c (x_tooltip_window_to_frame): Ignore all non-X
frames instead of trying to get their tooltip window.

src/xterm.c

index 77dea3ad4d178aa85637dbbbea065c6319c4d9ae..ed8f068136036843630575f48b283c84a13ec6eb 100644 (file)
@@ -10453,6 +10453,9 @@ x_tooltip_window_to_frame (struct x_display_info *dpyinfo,
        return f;
 
 #ifdef USE_GTK
+      if (!FRAME_X_P (f))
+       continue;
+
       if (FRAME_X_OUTPUT (f)->ttip_window)
        widget = GTK_WIDGET (FRAME_X_OUTPUT (f)->ttip_window);
       else