diff --git a/lib/x11/corereqs.js b/lib/x11/corereqs.js index 83c5d7a..dac1459 100644 --- a/lib/x11/corereqs.js +++ b/lib/x11/corereqs.js @@ -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; + } ] }