[gtk+/client-side-decorations] Ignore double-clicks
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-decorations] Ignore double-clicks
- Date: Fri, 10 Jul 2009 05:19:45 +0000 (UTC)
commit 9431c64751496ca46ce242cab2a004440922fe66
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 10 01:19:18 2009 -0400
Ignore double-clicks
gtk/gtkwindow.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index c97ea05..5ea63d3 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5994,6 +5994,9 @@ gtk_window_button_press_event (GtkWidget *widget,
gint x = event->x;
gint y = event->y;
+ if (event->type != GDK_BUTTON_PRESS)
+ return FALSE;
+
if (is_client_side_decorated (GTK_WINDOW (widget)))
{
GtkWindowRegion region = get_active_region_type (GTK_WINDOW (widget), x, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]