From cd4d6f7d02a26f4b97e2d7036a24f94c071f97bc Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Fri, 24 Sep 1999 20:08:53 +0000 Subject: [PATCH] 14862: Send proper triple-click count on Linux. a=leaf/r=pavlov --- widget/src/gtk/nsWidget.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/widget/src/gtk/nsWidget.cpp b/widget/src/gtk/nsWidget.cpp index 5d7a930749d..5e9d3b92619 100644 --- a/widget/src/gtk/nsWidget.cpp +++ b/widget/src/gtk/nsWidget.cpp @@ -1639,6 +1639,8 @@ nsWidget::OnButtonPressSignal(GdkEventButton * aGdkButtonEvent) { // Single click. case GDK_BUTTON_PRESS: + // Triple click. + case GDK_3BUTTON_PRESS: switch (aGdkButtonEvent->button) // Which button? { @@ -1684,11 +1686,6 @@ nsWidget::OnButtonPressSignal(GdkEventButton * aGdkButtonEvent) break; } break; - - // Triple click. - case GDK_3BUTTON_PRESS: - // Unhandled triple click. - break; default: break; @@ -1935,8 +1932,8 @@ nsWidget::InitMouseEvent(GdkEventButton * aGdkButtonEvent, case GDK_2BUTTON_PRESS: anEvent.clickCount = 2; break; - case GDK_3BUTTON_PRESS: /* Clamp to double-click */ - anEvent.clickCount = 2; + case GDK_3BUTTON_PRESS: + anEvent.clickCount = 3; break; default: anEvent.clickCount = 1;