mirror of
https://github.com/danbulant/node-x11
synced 2026-06-24 17:21:47 +00:00
Merge pull request #32 from santigimeno/get_input_focus
Add GetInputFocus request
This commit is contained in:
commit
4c291970ae
1 changed files with 13 additions and 0 deletions
|
|
@ -506,6 +506,19 @@ module.exports = {
|
||||||
return [ 'CCSLL', [42, revertTo, 3, wid, 0] ];
|
return [ 'CCSLL', [42, revertTo, 3, wid, 0] ];
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
GetInputFocus: [
|
||||||
|
function() {
|
||||||
|
return [ 'CxS', [ 43, 1 ] ];
|
||||||
|
},
|
||||||
|
function(buf, revertTo)
|
||||||
|
{
|
||||||
|
return {
|
||||||
|
focus : buf.unpack('L')[0],
|
||||||
|
revertTo : revertTo
|
||||||
|
};
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
WarpPointer: [
|
WarpPointer: [
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue