mirror of
https://github.com/danbulant/node-x11
synced 2026-06-14 12:11:26 +00:00
signed x,y in CreateWindow, value instead of array in ListProps
This commit is contained in:
parent
3aa441358e
commit
771330201b
1 changed files with 2 additions and 5 deletions
|
|
@ -129,8 +129,7 @@ module.exports = {
|
|||
values = {}
|
||||
|
||||
var packetLength = 8 + (values ? Object.keys(values).length : 0);
|
||||
// TODO: should be CCSLLssSSSSLL - x,y are signed
|
||||
var format = 'CCSLLSSSSSSLL';
|
||||
var format = 'CCSLLssSSSSLL';
|
||||
|
||||
// create bitmask
|
||||
var bitmask = 0;
|
||||
|
|
@ -324,13 +323,11 @@ module.exports = {
|
|||
},
|
||||
|
||||
function(buf) {
|
||||
console.log(buf);
|
||||
var n = buf.unpack('S')[0];
|
||||
console.log(n);
|
||||
var i;
|
||||
var atoms = [];
|
||||
for(i=0; i < n; ++i) {
|
||||
atoms.push(buf.unpack('L', 24+4*i));
|
||||
atoms.push(buf.unpack('L', 24+4*i)[0]);
|
||||
//console.log([n, i, atoms]);
|
||||
}
|
||||
return atoms;
|
||||
|
|
|
|||
Loading…
Reference in a new issue