[gtk+/client-side-decorations: 63/92] Ignore double-clicks
- From: Cody Russell <bratsche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/client-side-decorations: 63/92] Ignore double-clicks
- Date: Fri, 16 Apr 2010 19:32:24 +0000 (UTC)
commit 315bf62ec9180e90e0bf2010edb20328981747cd
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 ed2152f..08e850a 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6050,6 +6050,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]