Update README.md

This commit is contained in:
Andrey Sidorov 2012-04-12 10:20:00 +10:00
parent 3c5901394f
commit 6acbec1c4e

View file

@ -18,14 +18,14 @@ Core requsests usage:
var PointerMotion = x11.eventMask.PointerMotion;
x11.createClient(function(display) {
var X = this;
var X = display.client;
var root = display.screen[0].root;
var wid = X.AllocID();
X.CreateWindow(
wid, root,
0, 0, 100, 100,
0, 0, 0, 0,
{ eventMask: Exposure|PointerMotion }
wid, root, // new window id, parent
0, 0, 100, 100, // x, y, w, h
0, 0, 0, 0, // border, depth, class, visual
{ eventMask: Exposure|PointerMotion } // other parameters
);
X.MapWindow(wid);
var gc = X.AllocID();