mirror of
https://github.com/danbulant/node-x11
synced 2026-06-24 09:12:13 +00:00
Merge pull request #26 from santigimeno/translate_coordinates
Add TranslateCoordinates core request
This commit is contained in:
commit
05eba309fe
1 changed files with 15 additions and 0 deletions
|
|
@ -481,6 +481,21 @@ module.exports = {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
TranslateCoordinates: [
|
||||||
|
function(srcWid, dstWid, srcX, srcY) {
|
||||||
|
return [ 'CxSLLSS', [ 40, 4, srcWid, dstWid, srcX, srcY ] ];
|
||||||
|
},
|
||||||
|
function(buf)
|
||||||
|
{
|
||||||
|
var res = buf.unpack('LSS');
|
||||||
|
ext = {};
|
||||||
|
ext.child = res[0];
|
||||||
|
ext.destX = res[1];
|
||||||
|
ext.destY = res[2];
|
||||||
|
return ext;
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
SetInputFocus: [
|
SetInputFocus: [
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue