Commit fc05d4fe authored by Martin Rudalics's avatar Martin Rudalics

Fix segfault when calling frame_ancestor_p (Bug#26493)

* src/xterm.c (handle_one_xevent): Check that hf was not reset
before calling frame_ancestor_p (Bug#26493).
parent 96644ed4
......@@ -8801,7 +8801,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
frame. */
struct frame *hf = dpyinfo->x_highlight_frame;
if (FRAME_PARENT_FRAME (f) || frame_ancestor_p (f, hf))
if (FRAME_PARENT_FRAME (f) || (hf && frame_ancestor_p (f, hf)))
{
block_input ();
XSetInputFocus (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment