Subject: bug#26615: Recent Emacs crashes when PC is suspended and using tabbar-ruler package

From: Eli Zaretskii <[email-masked]>
Date: Sun, 23 Apr 2017 05:48:14 +0300

> From: Angelo Graziosi <[email-masked]>
> Date: Sun, 23 Apr 2017 00:38:22 +0200
> 
> This crash occurs only with April builds (and on Windows). I cannot 
> reproduce the crash (also with a full init.el file) with builds I did, 
> for example, in March (<= 20170327, r128789.8ce827426e-1)

Martin, this seems to be due to your changes in 3fdd3bb56.  Could you
please take a look?

The crash is here:

	if (f1)
	  {
	    /* Ok, we found a frame.  Store all the values.
	       last_mouse_glyph is a rectangle used to reduce the
	       generation of mouse events.  To not miss any motion
	       events, we must divide the frame into rectangles of the
	       size of the smallest character that could be displayed
	       on it, i.e. into the same rectangles that matrices on
	       the frame are divided into.  */

	    dpyinfo = FRAME_DISPLAY_INFO (f1);
	    ScreenToClient (FRAME_W32_WINDOW (f1), &pt);  <<<<<<<<<<<<<<<<<<<
	    remember_mouse_glyph (f1, pt.x, pt.y, &dpyinfo->last_mouse_glyph);
	    dpyinfo->last_mouse_glyph_frame = f1;

So maybe this has something to d with computing f1?

TIA