diff options
| author | Gerd Moellmann | 2000-11-21 22:26:20 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-21 22:26:20 +0000 |
| commit | f6c44811e2336379d64cf7dcd5611f2d928ae9f0 (patch) | |
| tree | 45dc83607070418169df57f65ae2e91987faab30 /src | |
| parent | 38ee4fb4bfd967f94942bbdb729d938a4a1b188a (diff) | |
| download | emacs-f6c44811e2336379d64cf7dcd5611f2d928ae9f0.tar.gz emacs-f6c44811e2336379d64cf7dcd5611f2d928ae9f0.zip | |
(Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
the menu bar when the tooltip is unmapped.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index a9750be61f7..5132cd17df5 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -10678,11 +10678,30 @@ Value is t is tooltip was open, nil otherwise.") | |||
| 10678 | if (tip_frame) | 10678 | if (tip_frame) |
| 10679 | { | 10679 | { |
| 10680 | Lisp_Object frame; | 10680 | Lisp_Object frame; |
| 10681 | 10681 | ||
| 10682 | XSETFRAME (frame, tip_frame); | 10682 | XSETFRAME (frame, tip_frame); |
| 10683 | Fdelete_frame (frame, Qt); | 10683 | Fdelete_frame (frame, Qt); |
| 10684 | tip_frame = NULL; | 10684 | tip_frame = NULL; |
| 10685 | deleted_p = 1; | 10685 | deleted_p = 1; |
| 10686 | |||
| 10687 | #ifdef USE_LUCID | ||
| 10688 | /* Bloodcurdling hack alert: The Lucid menu bar widget's | ||
| 10689 | redisplay procedure is not called when a tip frame over menu | ||
| 10690 | items is unmapped. Redisplay the menu manually... */ | ||
| 10691 | { | ||
| 10692 | struct frame *f = SELECTED_FRAME (); | ||
| 10693 | Widget w = f->output_data.x->menubar_widget; | ||
| 10694 | extern void xlwmenu_redisplay P_ ((Widget)); | ||
| 10695 | |||
| 10696 | if (!DoesSaveUnders (FRAME_X_DISPLAY_INFO (f)->screen) | ||
| 10697 | && w != None) | ||
| 10698 | { | ||
| 10699 | BLOCK_INPUT; | ||
| 10700 | xlwmenu_redisplay (w); | ||
| 10701 | UNBLOCK_INPUT; | ||
| 10702 | } | ||
| 10703 | } | ||
| 10704 | #endif /* USE_LUCID */ | ||
| 10686 | } | 10705 | } |
| 10687 | 10706 | ||
| 10688 | return unbind_to (count, deleted_p ? Qt : Qnil); | 10707 | return unbind_to (count, deleted_p ? Qt : Qnil); |