mirror of
https://github.com/danbulant/node-x11
synced 2026-06-24 17:21:47 +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;
|
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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue