mirror of
https://github.com/danbulant/node-x11
synced 2026-05-20 12:58:45 +00:00
getProperty wrapper
This commit is contained in:
parent
2e280aa78f
commit
b1625af9ca
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
Loading…
Reference in a new issue