diff --git a/lib/x11/corereqs.js b/lib/x11/corereqs.js index 57e1a64..080fc1d 100644 --- a/lib/x11/corereqs.js +++ b/lib/x11/corereqs.js @@ -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)