new V* stricter to variable names - class renamed to _class

This commit is contained in:
sidorares 2011-07-18 10:49:37 +10:00
parent 594456a9c3
commit 265e2b0bed

View file

@ -104,7 +104,8 @@ the way requests are described here
module.exports = {
CreateWindow: [
// create request packet - function OR format string
function(id, parentId, x, y, width, height, borderWidth, class, visual, values) {
function(id, parentId, x, y, width, height, borderWidth, _class, visual, values) {
console.log('CreateWindow called', id);
// TODO: ??? there is depth field in xproto, but xlib just sets it to zero
var depth = 0;
@ -116,7 +117,7 @@ module.exports = {
// create bitmask
var bitmask = 0;
// TODO: slice from function arguments?
var args = [1, depth, packetLength, id, parentId, x, y, width, height, borderWidth, class, visual];
var args = [1, depth, packetLength, id, parentId, x, y, width, height, borderWidth, _class, visual];
// TODO: the code is a little bit mess
// additional values need to be packed in the following way: