mirror of
https://github.com/danbulant/node-x11
synced 2026-05-24 12:35:39 +00:00
Add Grab requests
- GrabPointer, UngrabPointer, GrabButton, UngrabButton, ChangeActivePointerGrab, GrabKeyboard, UngrabKeyboard, GrabKey and UngrabKey
This commit is contained in:
parent
49375cff2c
commit
533f490806
1 changed files with 62 additions and 0 deletions
|
|
@ -466,6 +466,68 @@ module.exports = {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
GrabPointer: [
|
||||||
|
function(wid, ownerEvents, mask, pointerMode, keybMode, confineTo, cursor, time) {
|
||||||
|
return [ 'CCSLSCCLLL', [ 26, ownerEvents, 6, wid, mask, pointerMode, keybMode,
|
||||||
|
confineTo, cursor, time] ];
|
||||||
|
},
|
||||||
|
function(buf, status) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
UngrabPointer: [
|
||||||
|
function(time) {
|
||||||
|
return [ 'CxSL', [ 27, 2, time] ];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
GrabButton: [
|
||||||
|
function(wid, ownerEvents, mask, pointerMode, keybMode, confineTo, cursor, button, modifiers) {
|
||||||
|
return [ 'CCSLSCCLLCxS', [ 28, ownerEvents, 6, wid, mask, pointerMode, keybMode, confineTo,
|
||||||
|
cursor, button, modifiers ] ];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
UngrabButton: [
|
||||||
|
function(wid, button, modifiers) {
|
||||||
|
return [ 'CCSLSxx', [ 29, button, 3, wid, modifiers ] ];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
ChangeActivePointerGrab: [
|
||||||
|
function(cursor, time, mask) {
|
||||||
|
return [ 'CxSLLSxx', [ 30, 4, cursor, time, mask ] ];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
GrabKeyboard: [
|
||||||
|
function(wid, ownerEvents, time, pointerMode, keybMode) {
|
||||||
|
return [ 'CCSLLCCxx', [ 31, ownerEvents, 4, wid, time, pointerMode, keybMode ] ];
|
||||||
|
},
|
||||||
|
function(buf, status) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
UngrabKeyboard: [
|
||||||
|
function(time) {
|
||||||
|
return [ 'CxSL', [ 32, 2, time ] ];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
GrabKey: [
|
||||||
|
function(wid, ownerEvents, modifiers, key, pointerMode, keybMode) {
|
||||||
|
return [ 'CCSLSCCCxxx', [ 33, ownerEvents, 4, wid, modifiers, key, pointerMode, keybMode ] ];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
UngrabKey: [
|
||||||
|
function(wid, key, modifiers) {
|
||||||
|
return [ 'CCSLSxx', [ 34, key, 3, wid, modifiers ] ];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
QueryPointer: [
|
QueryPointer: [
|
||||||
[ 'CxSL', [38, 2] ],
|
[ 'CxSL', [38, 2] ],
|
||||||
function(buf, sameScreen) {
|
function(buf, sameScreen) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue