summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/menuframe.c')
-rw-r--r--openbox/menuframe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index c417c05a..a5c301ed 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -738,7 +738,8 @@ gboolean menu_frame_show_submenu(ObMenuFrame *self, ObMenuFrame *parent,
XMapWindow(ob_display, self->window);
- if (screen_pointer_pos(&dx, &dy) && (e = menu_entry_frame_under(dx, dy)))
+ if (screen_pointer_pos(&dx, &dy) && (e = menu_entry_frame_under(dx, dy)) &&
+ e->frame == self)
++e->ignore_enters;
return TRUE;