зеркало из https://github.com/mozilla/pjs.git
14862: Send proper triple-click count on Linux. a=leaf/r=pavlov
This commit is contained in:
Родитель
e3ce18cbc8
Коммит
cd4d6f7d02
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче