Subject: bug#32615: 27.0.50; Deadly signal in make-frame

From: martin rudalics <[email-masked]>
Date: Mon, 03 Sep 2018 09:29:30 +0200

> It seems there is a problem when a float is being used as the parameter
 > value of either `width' or `height' in a `make-frame' call: The X server
 > reports a BadDrawable error and Emacs aborts.  This behaviour occurs
 > deterministically in both window-managers I've tried, i.e. i3 and
 > fluxbox.  A backtrace follows.

Does the attached patch fix it?  If so, I'll install it on the release
branch.  OK Eli?

Many thanks for the report, martin
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5054,7 +5054,7 @@ struct mouse_cursor_data {
   int menu_bar_height = 0, menu_bar_width = 0;
   int tool_bar_height = 0, tool_bar_width = 0;
 
-  if (FRAME_INITIAL_P (f) || !FRAME_X_P (f))
+  if (FRAME_INITIAL_P (f) || !FRAME_X_P (f) || !FRAME_OUTER_WINDOW (f))
     return Qnil;
 
   block_input ();