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; var PointerMotion = x11.eventMask.PointerMotion;
x11.createClient(function(display) { x11.createClient(function(display) {
var X = this; var X = display.client;
var root = display.screen[0].root; var root = display.screen[0].root;
var wid = X.AllocID(); var wid = X.AllocID();
X.CreateWindow( X.CreateWindow(
wid, root, wid, root, // new window id, parent
0, 0, 100, 100, 0, 0, 100, 100, // x, y, w, h
0, 0, 0, 0, 0, 0, 0, 0, // border, depth, class, visual
{ eventMask: Exposure|PointerMotion } { eventMask: Exposure|PointerMotion } // other parameters
); );
X.MapWindow(wid); X.MapWindow(wid);
var gc = X.AllocID(); var gc = X.AllocID();