x11
Version:
A pure node.js JavaScript client implementing X Window (X11) protocol and extensions.
13 lines (12 loc) • 323 B
JavaScript
var x11 = require('../../lib');
var wid = process.argv[2];
console.log(wid);
var wids = [];
x11.createClient(function(err, display) {
var X = display.client;
var root = display.screen[0].root;
X.QueryTree(wid ? wid : root, function(err, tree) {
console.log(tree);
X.terminate();
});
});