Merge pull request #34 from santigimeno/add_grab_pointer

Add Grab requests
This commit is contained in:
Andrey Sidorov 2013-10-21 03:41:23 -07:00
commit 10dfbf9a53

View file

@ -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: [
[ 'CxSL', [38, 2] ],
function(buf, sameScreen) {