new argument depth in CreateWindow

This commit is contained in:
Andrey Sidorov 2012-04-11 16:46:39 +10:00
parent bc641f3bce
commit 4a8202fa49

View file

@ -1,14 +1,13 @@
var x11 = require('../lib/x11');
var xclient = x11.createClient();
var Exposure = x11.eventMask.Exposure;
var PointerMotion = x11.eventMask.PointerMotion;
var pts = [100, 1000, 10, 20, 10, 0, 0, 3];
var pts = [];
var prevPoint;
xclient.on('connect', function(display) {
var X = this;
x11.createClient(function(display) {
var X = display.client;
var root = display.screen[0].root;
var white = display.screen[0].white_pixel;
var black = display.screen[0].black_pixel;
@ -16,8 +15,8 @@ xclient.on('connect', function(display) {
var wid = X.AllocID();
X.CreateWindow(
wid, root,
10, 10, 400, 300,
1, 1, 0,
0, 0, 400, 300,
0, 0, 0, 0,
{
backgroundPixel: white, eventMask: Exposure|PointerMotion
}