diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/xfns.c b/src/xfns.c index aad9680c4df..9624ac5d9ac 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -6084,16 +6084,19 @@ Value is t if tooltip was open, nil otherwise. */) | |||
| 6084 | items is unmapped. Redisplay the menu manually... */ | 6084 | items is unmapped. Redisplay the menu manually... */ |
| 6085 | { | 6085 | { |
| 6086 | Widget w; | 6086 | Widget w; |
| 6087 | struct frame *f = SELECTED_FRAME (); | 6087 | struct frame *f = SELECTED_FRAME (); |
| 6088 | w = f->output_data.x->menubar_widget; | 6088 | if (FRAME_X_P (f) && FRAME_LIVE_P (f)) |
| 6089 | { | ||
| 6090 | w = f->output_data.x->menubar_widget; | ||
| 6089 | 6091 | ||
| 6090 | if (!DoesSaveUnders (FRAME_DISPLAY_INFO (f)->screen) | 6092 | if (!DoesSaveUnders (FRAME_DISPLAY_INFO (f)->screen) |
| 6091 | && w != NULL) | 6093 | && w != NULL) |
| 6092 | { | 6094 | { |
| 6093 | block_input (); | 6095 | block_input (); |
| 6094 | xlwmenu_redisplay (w); | 6096 | xlwmenu_redisplay (w); |
| 6095 | unblock_input (); | 6097 | unblock_input (); |
| 6096 | } | 6098 | } |
| 6099 | } | ||
| 6097 | } | 6100 | } |
| 6098 | #endif /* USE_LUCID */ | 6101 | #endif /* USE_LUCID */ |
| 6099 | } | 6102 | } |