mirror of
https://github.com/danbulant/node-x11
synced 2026-07-08 12:40:40 +00:00
fix outdated code
This commit is contained in:
parent
dc1050afb4
commit
0d9b317ebb
1 changed files with 12 additions and 17 deletions
|
|
@ -1,7 +1,6 @@
|
|||
var Buffer = require('buffer').Buffer;
|
||||
var x11 = require('../../lib');
|
||||
|
||||
var xclient = x11.createClient();
|
||||
var Exposure = x11.eventMask.Exposure;
|
||||
var PointerMotion = x11.eventMask.PointerMotion;
|
||||
|
||||
|
|
@ -20,13 +19,10 @@ for (var i=0; i < bitmap.length; ++i)
|
|||
|
||||
}
|
||||
|
||||
xclient.on('connect', function(err, display) {
|
||||
x11.createClient(function(err, display) {
|
||||
if (err) throw err;
|
||||
|
||||
var X = display.client;
|
||||
X.require('big-requests', function(BigReq) {
|
||||
|
||||
BigReq.Enable(function(maxLen) { console.log( maxLen ); });
|
||||
|
||||
X.require('render', function(Render) {
|
||||
|
||||
var root = display.screen[0].root;
|
||||
|
|
@ -72,5 +68,4 @@ X.require('render', function(Render) {
|
|||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue