mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 18:31:29 +00:00
Bug 574861 - Windows should never be movable in fullscreen mode. r=enn
This commit is contained in:
parent
c158bede5e
commit
321694e97f
@ -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;
|
||||
|
||||
|
@ -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) {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user