aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu.c
diff options
context:
space:
mode:
authorDmitry Antipov2014-07-01 12:07:32 +0400
committerDmitry Antipov2014-07-01 12:07:32 +0400
commit9714dfd285f404df791d862e242cc726a09c2f85 (patch)
tree07a70f93e32fc972b1d0bfa161d44193c42c5c3f /src/menu.c
parent34ac10a87beb0b801e2ca979e98fb40099656c2c (diff)
downloademacs-9714dfd285f404df791d862e242cc726a09c2f85.tar.gz
emacs-9714dfd285f404df791d862e242cc726a09c2f85.zip
* menu.c (Fx_popup_dialog): Set Vmenu_updating_frame to avoid crash
caused by xw_popup_dialog in daemon mode (Bug#17891).
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/menu.c b/src/menu.c
index 468f2814eb4..654be0db9c7 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1554,6 +1554,11 @@ for instance using the window manager, then this produces a quit and
1554 but I don't want to make one now. */ 1554 but I don't want to make one now. */
1555 CHECK_WINDOW (window); 1555 CHECK_WINDOW (window);
1556 1556
1557 /* Note that xw_popup_dialog can call menu code, so
1558 Vmenu_updating_frame should be set (Bug#17891). */
1559 eassert (f && FRAME_LIVE_P (f));
1560 XSETFRAME (Vmenu_updating_frame, f);
1561
1557 /* Force a redisplay before showing the dialog. If a frame is created 1562 /* Force a redisplay before showing the dialog. If a frame is created
1558 just before showing the dialog, its contents may not have been fully 1563 just before showing the dialog, its contents may not have been fully
1559 drawn, as this depends on timing of events from the X server. Redisplay 1564 drawn, as this depends on timing of events from the X server. Redisplay