[MM-14135] allow negative window app positions (#1124)

* [MM-14135] allow negative positions to enable having the app on a monitor on the left of primary

* remove logging
This commit is contained in:
Guillermo Vayá
2019-12-13 17:13:03 +01:00
committed by GitHub
parent efd56d7ac3
commit 2d8c7af089
3 changed files with 35 additions and 20 deletions

View File

@@ -7,9 +7,6 @@ import Utils from '../utils/util';
const defaultOptions = {
stripUnknown: true,
};
const defaultMinWindowXPos = -100;
const defaultMinWindowYPos = -100;
const defaultWindowWidth = 1000;
const defaultWindowHeight = 700;
const minWindowWidth = 400;
@@ -25,8 +22,8 @@ const argsSchema = Joi.object({
});
const boundsInfoSchema = Joi.object({
x: Joi.number().integer().min(defaultMinWindowXPos).default(0),
y: Joi.number().integer().min(defaultMinWindowYPos).default(0),
x: Joi.number().integer().default(0),
y: Joi.number().integer().default(0),
width: Joi.number().integer().min(minWindowWidth).required().default(defaultWindowWidth),
height: Joi.number().integer().min(minWindowHeight).required().default(defaultWindowHeight),
maximized: Joi.boolean().default(false),