aboutsummaryrefslogtreecommitdiffstats
path: root/src/pgtkmenu.c
diff options
context:
space:
mode:
authorYuuki Harano2021-05-08 23:43:19 +0900
committerYuuki Harano2021-05-08 23:46:49 +0900
commit647e4a92bbb771e248c640b9ea4737f928ba187e (patch)
tree67f32bf294e783cf61c4e1d446521885a872b232 /src/pgtkmenu.c
parent639d94fe14ce4d6036296c4b548ecbe4910ad7fa (diff)
downloademacs-647e4a92bbb771e248c640b9ea4737f928ba187e.tar.gz
emacs-647e4a92bbb771e248c640b9ea4737f928ba187e.zip
* src/pgtkmenu.c (show_help_event): Let emacs not show menu tooltips
Diffstat (limited to 'src/pgtkmenu.c')
-rw-r--r--src/pgtkmenu.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pgtkmenu.c b/src/pgtkmenu.c
index 59cc9c25dc5..b8f4619d7d0 100644
--- a/src/pgtkmenu.c
+++ b/src/pgtkmenu.c
@@ -162,6 +162,21 @@ popup_deactivate_callback (GtkWidget * widget, gpointer client_data)
162static void 162static void
163show_help_event (struct frame *f, GtkWidget * widget, Lisp_Object help) 163show_help_event (struct frame *f, GtkWidget * widget, Lisp_Object help)
164{ 164{
165 /* Don't show this tooltip.
166 * Tooltips are always tied to main widget, so stacking order
167 * on Wayland is:
168 * (above)
169 * - menu
170 * - tooltip
171 * - main widget
172 * (below)
173 * This is applicable to tooltips for menu, and menu tooltips
174 * are shown below menus.
175 * As a workaround, I entrust Gtk with menu tooltips, and
176 * let emacs not to show menu tooltips.
177 */
178
179#if 0
165 Lisp_Object frame; 180 Lisp_Object frame;
166 181
167 if (f) 182 if (f)
@@ -171,6 +186,7 @@ show_help_event (struct frame *f, GtkWidget * widget, Lisp_Object help)
171 } 186 }
172 else 187 else
173 show_help_echo (help, Qnil, Qnil, Qnil); 188 show_help_echo (help, Qnil, Qnil, Qnil);
189#endif
174} 190}
175 191
176/* Callback called when menu items are highlighted/unhighlighted 192/* Callback called when menu items are highlighted/unhighlighted