Just above, f1 can become a selected frame, which may be a terminal
frame. We can't call gtk_widget_get_window() for a terminal frame.
* src/pgtkterm.c (pgtk_mouse_position): Return if it is not a pgtk frame.
}
}
+ /* f1 can be a terminal frame. */
+ if (f1 == NULL || !FRAME_PGTK_P (f1))
+ {
+ unblock_input ();
+ return;
+ }
+
/* 2. get the display and the device. */
win = gtk_widget_get_window (FRAME_GTK_WIDGET (f1));
GdkDisplay *gdpy = gdk_window_get_display (win);