mirror of
https://github.com/danbulant/node-x11
synced 2026-06-19 14:41:03 +00:00
clean up (use default parameters)
This commit is contained in:
parent
93cec8ecc7
commit
95765c9385
1 changed files with 8 additions and 1 deletions
|
|
@ -1,7 +1,14 @@
|
|||
var x11 = require('../../lib/x11');
|
||||
x11.createClient(function(display) {
|
||||
console.log(display.screen[0])
|
||||
var X = display.client;
|
||||
var wid = X.AllocID();
|
||||
X.CreateWindow(wid, display.screen[0].root, 100, 100, 400, 300);
|
||||
X.CreateWindow(wid, display.screen[0].root, 100, 100, 400, 300,
|
||||
11,
|
||||
32,
|
||||
0,
|
||||
613
|
||||
);
|
||||
X.MapWindow(wid);
|
||||
X.on('error', function(err) { console.log(err) });
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue