mirror of
https://github.com/danbulant/node-x11
synced 2026-07-05 19:20:54 +00:00
Merge pull request #25 from santigimeno/get_geometry_fixes
A couple of fixes in GetGeometry
This commit is contained in:
commit
15ef385d12
1 changed files with 2 additions and 2 deletions
|
|
@ -787,13 +787,13 @@ module.exports = {
|
||||||
function(buff)
|
function(buff)
|
||||||
{
|
{
|
||||||
var res = buff.unpack('LSSSSSx');
|
var res = buff.unpack('LSSSSSx');
|
||||||
ext = {};
|
var ext = {};
|
||||||
ext.windowid = res[0]
|
ext.windowid = res[0]
|
||||||
ext.xPos = res[1];
|
ext.xPos = res[1];
|
||||||
ext.yPos = res[2];
|
ext.yPos = res[2];
|
||||||
ext.width = res[3];
|
ext.width = res[3];
|
||||||
ext.height = res[4];
|
ext.height = res[4];
|
||||||
ext.borderWith = res[5];
|
ext.borderWidth = res[5];
|
||||||
return ext;
|
return ext;
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue