mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Rewrite debug for monitor assessment
This commit is contained in:
21
extension.js
21
extension.js
@@ -3,6 +3,13 @@ const Main = imports.ui.main
|
|||||||
const Mainloop = imports.mainloop;
|
const Mainloop = imports.mainloop;
|
||||||
const Gio = imports.gi.Gio;
|
const Gio = imports.gi.Gio;
|
||||||
|
|
||||||
|
let config = {
|
||||||
|
default: {
|
||||||
|
rows: 2,
|
||||||
|
cols: 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let _close = 50;
|
let _close = 50;
|
||||||
var debug = true;
|
var debug = true;
|
||||||
|
|
||||||
@@ -178,12 +185,14 @@ function getMonitorArray() {
|
|||||||
for (var i = 0; i < monitors.length; i++) {
|
for (var i = 0; i < monitors.length; i++) {
|
||||||
_log(JSON.stringify(monitors[i]));
|
_log(JSON.stringify(monitors[i]));
|
||||||
}
|
}
|
||||||
//var monitors = Main.layoutManager.monitors;
|
if (debug) {
|
||||||
//monitors.sort(function(a, b) {
|
var monitors = Main.layoutManager.monitors;
|
||||||
//});
|
monitors.sort(function(a, b) {
|
||||||
//let monWidth = Main.layoutManager.monitors[mon].width;
|
});
|
||||||
//let monHeight = Main.layoutManager.monitors[mon].height;
|
let monWidth = Main.layoutManager.monitors[mon].width;
|
||||||
//_log("mon: " + mon);
|
let monHeight = Main.layoutManager.monitors[mon].height;
|
||||||
|
_log("mon: " + mon);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function moveWindow(direction) {
|
function moveWindow(direction) {
|
||||||
|
|||||||
Reference in New Issue
Block a user