14862: Send proper triple-click count on Linux. a=leaf/r=pavlov

This commit is contained in:
akkana%netscape.com 1999-09-24 20:08:53 +00:00
Родитель e3ce18cbc8
Коммит cd4d6f7d02
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -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;