getProperty wrapper

This commit is contained in:
sidorares 2011-07-25 13:48:20 +10:00
parent 2e280aa78f
commit b1625af9ca

View file

@ -127,6 +127,7 @@ function Window(parent, x, y, w, h)
}
return this._gc;
});
}
util.inherits(Window, EventEmitter);
@ -144,4 +145,12 @@ Window.prototype.handle = function(handlers) {
}
}
Window.prototype.getProperty = function(name, cb) {
this.xclient.InternAtom(true, nam, function(nameAtom) {
this.xclient.GetProperty(0, this.id, nameAtom, 0, 1000000000, function(prop) {
cb(prop);
});
});
}
module.exports = Window;