mirror of
https://github.com/danbulant/node-x11
synced 2026-06-10 10:11:03 +00:00
Merge pull request #33 from santigimeno/fix_responses
Fixes in some replies
This commit is contained in:
commit
74996feabf
1 changed files with 7 additions and 4 deletions
|
|
@ -468,7 +468,7 @@ module.exports = {
|
|||
|
||||
QueryPointer: [
|
||||
[ 'CxSL', [38, 2] ],
|
||||
function(buf) {
|
||||
function(buf, sameScreen) {
|
||||
var res = buf.unpack('LLssssS');
|
||||
return {
|
||||
root: res[0],
|
||||
|
|
@ -477,7 +477,8 @@ module.exports = {
|
|||
rootY: res[3],
|
||||
childX: res[4],
|
||||
childY: res[5],
|
||||
keyMask: res[6]
|
||||
keyMask: res[6],
|
||||
sameScreen : sameScreen
|
||||
};
|
||||
}
|
||||
],
|
||||
|
|
@ -486,13 +487,14 @@ module.exports = {
|
|||
function(srcWid, dstWid, srcX, srcY) {
|
||||
return [ 'CxSLLSS', [ 40, 4, srcWid, dstWid, srcX, srcY ] ];
|
||||
},
|
||||
function(buf)
|
||||
function(buf, sameScreen)
|
||||
{
|
||||
var res = buf.unpack('Lss');
|
||||
var ext = {};
|
||||
ext.child = res[0];
|
||||
ext.destX = res[1];
|
||||
ext.destY = res[2];
|
||||
ext.sameScreen = sameScreen;
|
||||
return ext;
|
||||
}
|
||||
],
|
||||
|
|
@ -799,7 +801,7 @@ module.exports = {
|
|||
function(drawable){
|
||||
return ['CxSL', [14, 2, drawable]]
|
||||
},
|
||||
function(buff)
|
||||
function(buff, depth)
|
||||
{
|
||||
var res = buff.unpack('LssSSSx');
|
||||
var ext = {};
|
||||
|
|
@ -809,6 +811,7 @@ module.exports = {
|
|||
ext.width = res[3];
|
||||
ext.height = res[4];
|
||||
ext.borderWidth = res[5];
|
||||
ext.depth = depth;
|
||||
return ext;
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue