Bug 505700 - Don't allow moving the window with the toolbar while in fullscreen mode. r=enndeakin

This commit is contained in:
Markus Stange 2009-07-22 14:18:08 +02:00
Родитель 6411fea42a
Коммит 5ac4d53376
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -430,15 +430,16 @@
<binding id="toolbar-drag"
extends="chrome://global/content/bindings/toolbar.xml#toolbar">
<implementation>
<constructor>
<constructor><![CDATA[
try {
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm");
let draggableThis = new WindowDraggingElement(this, window);
draggableThis.mouseDownCheck = function(e) {
return !this.parentNode.customizing; // Don't move while customizing.
// Don't move while customizing or while in full screen mode.
return !this.parentNode.customizing && !window.fullScreen;
}
} catch (e) {}
</constructor>
]]></constructor>
</implementation>
</binding>