mirror of
https://github.com/danbulant/node-x11
synced 2026-07-04 10:40:36 +00:00
Merge pull request #5 from AndrewSwerlick/master
I added a new GetGeometryRequest to corereqs.js
This commit is contained in:
commit
956ba1e241
1 changed files with 18 additions and 0 deletions
|
|
@ -444,5 +444,23 @@ module.exports = {
|
||||||
res.push(buff.unpack(format, offset));
|
res.push(buff.unpack(format, offset));
|
||||||
return res;
|
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