node-x11/examples/smoketest/querytree.js
2012-12-01 09:39:07 +08:00

12 lines
322 B
JavaScript

var x11 = require('../../lib/x11');
var wid = process.argv[2];
console.log(wid);
var wids = [];
x11.createClient(function(display) {
var X = display.client;
var root = display.screen[0].root;
X.QueryTree(wid ? wid : root, function(err, tree) {
console.log(tree);
X.terminate();
});
});