mirror of
https://github.com/danbulant/node-x11
synced 2026-06-15 12:41:29 +00:00
new argument depth in CreateWindow
This commit is contained in:
parent
bc641f3bce
commit
4a8202fa49
1 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue