querytree example

This commit is contained in:
Andrey Sidorov 2012-02-28 17:19:44 +11:00
parent e6c683d631
commit ec330996ce

11
test/querytree.js Normal file
View file

@ -0,0 +1,11 @@
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(tree) {
console.log(tree);
});
});