mirror of
https://github.com/danbulant/node-x11
synced 2026-05-21 21:39:13 +00:00
new V* stricter to variable names - class renamed to _class
This commit is contained in:
parent
594456a9c3
commit
265e2b0bed
1 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue