mirror of
https://github.com/danbulant/node-x11
synced 2026-06-15 04:31:17 +00:00
Added GetGeometry request
This commit is contained in:
parent
44b409bccd
commit
986c3f07e2
1 changed files with 18 additions and 0 deletions
|
|
@ -444,5 +444,23 @@ module.exports = {
|
|||
res.push(buff.unpack(format, offset));
|
||||
return res;
|
||||
}
|
||||
],
|
||||
|
||||
GetGeometry: [
|
||||
function(drawable){
|
||||
return ['CxSL', [14, 2, drawable]]
|
||||
},
|
||||
function(buff)
|
||||
{
|
||||
var res = buff.unpack('LSSSSSx');
|
||||
ext = {};
|
||||
ext.windowid = res[0]
|
||||
ext.xPos = res[1];
|
||||
ext.yPos = res[2];
|
||||
ext.width = res[3];
|
||||
ext.height = res[4];
|
||||
ext.borderWith = res[5];
|
||||
return ext;
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue