From 986c3f07e20233de01a17aec907980e3f32f9341 Mon Sep 17 00:00:00 2001 From: Andrew Swerlick Date: Tue, 13 Sep 2011 23:05:39 -0400 Subject: [PATCH] Added GetGeometry request --- lib/x11/corereqs.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; + } ] }