node-x11/examples/smoketest/querytree.js
2013-02-19 17:47:22 +11:00

12 lines
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();
});
});