mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Disable opening of new tabs when double-clicking on the tabbar when the tabbar is unified with the titlebar, on GTK. (Bug 635397) r=dao a2.0=beltzner
This commit is contained in:
parent
945ff28141
commit
2355d289bc
@ -3086,7 +3086,16 @@
|
||||
]]></handler>
|
||||
|
||||
<handler event="dblclick"><![CDATA[
|
||||
// See hack note in the tabbrowser-close-button binding
|
||||
#ifdef MOZ_WIDGET_GTK2
|
||||
// Disable this on GTK2 when the menubar is draggable, since (a)
|
||||
// the menubar and tabbbar have unified appearance and should
|
||||
// thus not have different behavior (though this condition alone
|
||||
// applies to more cases) and (b) it interacts badly with the
|
||||
// drag handling that we use for dragging either one.
|
||||
if (this.parentNode._dragBindingAlive)
|
||||
return;
|
||||
#endif
|
||||
// See hack note in the tabbrowser-close-tab-button binding
|
||||
if (!this._blockDblClick && event.button == 0 &&
|
||||
event.originalTarget.localName == "box")
|
||||
BrowserOpenTab();
|
||||
|
Loading…
Reference in New Issue
Block a user