Bug 574861 - Windows should never be movable in fullscreen mode. r=enn

This commit is contained in:
Dão Gottwald 2010-06-26 16:49:15 +02:00
parent c158bede5e
commit 321694e97f
2 changed files with 5 additions and 3 deletions

View File

@ -50,7 +50,9 @@ WindowDraggingElement.prototype = {
handleEvent: function(aEvent) {
switch (aEvent.type) {
case "mousedown":
if (aEvent.button != 0 || !this.mouseDownCheck.call(this._elem, aEvent) ||
if (aEvent.button != 0 ||
this._window.fullScreen ||
!this.mouseDownCheck.call(this._elem, aEvent) ||
aEvent.getPreventDefault())
return;

View File

@ -447,8 +447,8 @@
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm");
let draggableThis = new WindowDraggingElement(this, window);
draggableThis.mouseDownCheck = function(e) {
// Don't move while customizing or while in full screen mode.
return !this.parentNode.customizing && !window.fullScreen;
// Don't move while customizing.
return !this.parentNode.customizing;
}
} catch (e) {}
}