mirror of
https://github.com/danbulant/node-x11
synced 2026-06-13 19:52:22 +00:00
Update README.md
This commit is contained in:
parent
3c5901394f
commit
6acbec1c4e
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue