Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
c9392d57e8
commit
2dce314aa0
14
js/x11/examples/simple/createwindow.js
Normal file
14
js/x11/examples/simple/createwindow.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
var x11 = require('../../lib');
|
||||
x11.createClient(function(err, 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,
|
||||
11,
|
||||
32,
|
||||
0,
|
||||
613
|
||||
);
|
||||
X.MapWindow(wid);
|
||||
X.on('error', function(err) { console.log(err) });
|
||||
});
|
Loading…
Reference in New Issue
Block a user