Subject: bug#16058: 24.3.50; X protocol error: BadAlloc...

From: Dmitry Antipov <[email-masked]>
Date: Mon, 09 Dec 2013 12:36:18 +0400

On 12/06/2013 12:39 PM, Thierry Volpiatto wrote:

> Do you want the output of xtruss? (huge)

No. Instead, could you please verify an attached fix instead?
It works for me against development trunk revision 115437.

Dmitry

=== modified file 'src/xdisp.c'
--- src/xdisp.c	2013-12-04 18:46:47 +0000
+++ src/xdisp.c	2013-12-09 08:30:57 +0000
@@ -11937,6 +11937,8 @@
   int max_x = it->last_visible_x;
   struct glyph *last;
 
+  /* Don't extend on a previously drawn tool bar items (Bug#16058).  */
+  row->enabled_p = 0;
   prepare_desired_row (row);
   row->y = it->current_y;