|
Lines 362-367
static bool gBlockActivateE
Link Here
|
| 362 |
static bool gGlobalsInitialized = false; |
362 |
static bool gGlobalsInitialized = false; |
| 363 |
static bool gRaiseWindows = true; |
363 |
static bool gRaiseWindows = true; |
| 364 |
|
364 |
|
|
|
365 |
static bool menuContextOnClickRelease = false; |
| 365 |
#if GTK_CHECK_VERSION(3,4,0) |
366 |
#if GTK_CHECK_VERSION(3,4,0) |
| 366 |
static uint32_t gLastTouchID = 0; |
367 |
static uint32_t gLastTouchID = 0; |
| 367 |
#endif |
368 |
#endif |
|
Lines 2795-2803
nsWindow::OnButtonPressEvent(GdkEventBut
Link Here
|
| 2795 |
|
2796 |
|
| 2796 |
DispatchInputEvent(&event); |
2797 |
DispatchInputEvent(&event); |
| 2797 |
|
2798 |
|
|
|
2799 |
Preferences::AddBoolVarCache(&menuContextOnClickRelease, "input.contextMmenu.onRelease", false); |
| 2800 |
|
| 2798 |
// right menu click on linux should also pop up a context menu |
2801 |
// right menu click on linux should also pop up a context menu |
| 2799 |
if (domButton == WidgetMouseEvent::eRightButton && |
2802 |
if (domButton == WidgetMouseEvent::eRightButton && |
| 2800 |
MOZ_LIKELY(!mIsDestroyed)) { |
2803 |
MOZ_LIKELY(!mIsDestroyed) && !menuContextOnClickRelease) { |
| 2801 |
WidgetMouseEvent contextMenuEvent(true, eContextMenu, this, |
2804 |
WidgetMouseEvent contextMenuEvent(true, eContextMenu, this, |
| 2802 |
WidgetMouseEvent::eReal); |
2805 |
WidgetMouseEvent::eReal); |
| 2803 |
InitButtonEvent(contextMenuEvent, aEvent); |
2806 |
InitButtonEvent(contextMenuEvent, aEvent); |
|
Lines 2838-2843
nsWindow::OnButtonReleaseEvent(GdkEventB
Link Here
|
| 2838 |
|
2841 |
|
| 2839 |
DispatchInputEvent(&event); |
2842 |
DispatchInputEvent(&event); |
| 2840 |
mLastMotionPressure = pressure; |
2843 |
mLastMotionPressure = pressure; |
|
|
2844 |
|
| 2845 |
Preferences::AddBoolVarCache(&menuContextOnClickRelease, "input.contextMmenu.onRelease", false); |
| 2846 |
|
| 2847 |
// right menu click on linux should also pop up a context menu |
| 2848 |
if (domButton == WidgetMouseEvent::eRightButton && |
| 2849 |
MOZ_LIKELY(!mIsDestroyed) && menuContextOnClickRelease) { |
| 2850 |
WidgetMouseEvent contextMenuEvent(true, eContextMenu, this, |
| 2851 |
WidgetMouseEvent::eReal); |
| 2852 |
InitButtonEvent(contextMenuEvent, aEvent); |
| 2853 |
contextMenuEvent.pressure = mLastMotionPressure; |
| 2854 |
DispatchInputEvent(&contextMenuEvent); |
| 2855 |
} |
| 2841 |
} |
2856 |
} |
| 2842 |
|
2857 |
|
| 2843 |
void |
2858 |
void |