initial ConfigureWindow implementation

This commit is contained in:
Andrey Sidorov 2012-01-18 16:49:29 +11:00
parent 3732cc4e20
commit 1123cfd466

View file

@ -43,6 +43,14 @@ var valueMask = {
dashOffset : 0x00100000,
dashes : 0x00200000,
arcMode : 0x00400000
},
ConfigureWindow: {
x: 0x000001,
y: 0x000002,
width: 0x000004,
height: 0x000008,
borderWidth: 0x000010,
stackMode: 0x000020
}
};
@ -169,6 +177,15 @@ module.exports = {
[ 'CxSL', [10, 2] ]
],
// TODO: remove? this is actually a ConfigureWindow request
// with width and height argiments & arguments mask
ResiseWindow: [
function(win, width, height) {
return ['CxSLSxxSxxSxx', [12, 5, win, 12, width, height]];
}
],
// opcode 16
InternAtom: [
function (returnOnlyIfExist, value)