mirror of
https://github.com/danbulant/node-x11
synced 2026-06-11 10:40:23 +00:00
querytree example
This commit is contained in:
parent
e6c683d631
commit
ec330996ce
1 changed files with 11 additions and 0 deletions
11
test/querytree.js
Normal file
11
test/querytree.js
Normal 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);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue