diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-11-29 22:06:18 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-11-29 23:10:34 -0500 |
commit | ce6f43a522bcaea6ec4254dbd1a19863fe9e5599 (patch) | |
tree | 6b32e7c52f023beb6ed0962f40f42c5babb8dd96 /gtk/gtkmenushell.c | |
parent | 5230cfe805b8f0046896c029612180fc9d4cc5df (diff) | |
download | gtk+-ce6f43a522bcaea6ec4254dbd1a19863fe9e5599.tar.gz |
Don't check the same crossing mode twice
This was broken since commit b2aaa94 in 2008. Its commit message
clearly states that the intention was to check for GTK_GRAB,
GTK_UNGRAB and STATE_CHANGED. Lets do that, then.
This was found by Coverity.
Diffstat (limited to 'gtk/gtkmenushell.c')
-rw-r--r-- | gtk/gtkmenushell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 5099179285..942c721b9f 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -1107,7 +1107,7 @@ gtk_menu_shell_leave_notify (GtkWidget *widget, GdkEventCrossing *event) { if (event->mode == GDK_CROSSING_GTK_GRAB || - event->mode == GDK_CROSSING_GTK_GRAB || + event->mode == GDK_CROSSING_GTK_UNGRAB || event->mode == GDK_CROSSING_STATE_CHANGED) return TRUE; |