Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 637998 | Differences between
and this patch

Collapse All | Expand All

(-)a/modules/libpref/init/all.js (+3 lines)
Lines 5913-5915 pref("dom.noopener.newprocess.enabled", Link Here
5913
5913
5914
pref("layers.omtp.enabled", false);
5914
pref("layers.omtp.enabled", false);
5915
pref("layers.omtp.force-sync", false);
5915
pref("layers.omtp.force-sync", false);
5916
5917
//Pop up context menu on mouse button release
5918
pref("input.contextMenu.onRelease", false);
(-)a/widget/gtk/nsWindow.cpp (-1 / +16 lines)
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

Return to bug 637998