emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master feb94707a9: Fix crashes in x_tooltip_window_to_frame on GTK


From: Po Lu
Subject: master feb94707a9: Fix crashes in x_tooltip_window_to_frame on GTK
Date: Thu, 9 Jun 2022 21:29:05 -0400 (EDT)

branch: master
commit feb94707a9b1a1e35889ce743783d370fba2e739
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix crashes in x_tooltip_window_to_frame on GTK
    
    * src/xterm.c (x_tooltip_window_to_frame): Ignore all non-X
    frames instead of trying to get their tooltip window.
---
 src/xterm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index 77dea3ad4d..ed8f068136 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]