diff options
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/menu.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a94bf5dbb46..e733c2820ab 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2014-07-01 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2014-07-01 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * xfaces.c (init_frame_faces): Always realize basic faces (#Bug17889). | 3 | * xfaces.c (init_frame_faces): Always realize basic faces (#Bug17889). |
| 4 | * menu.c (Fx_popup_dialog): Set Vmenu_updating_frame to avoid crash | ||
| 5 | caused by xw_popup_dialog in daemon mode (Bug#17891). | ||
| 4 | 6 | ||
| 5 | 2014-06-30 Eli Zaretskii <eliz@gnu.org> | 7 | 2014-06-30 Eli Zaretskii <eliz@gnu.org> |
| 6 | 8 | ||
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 |